Compare commits

..

No commits in common. "master" and "unittesting" have entirely different histories.

1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ from libs.monitoring import endedCall
from libs.message import conversion as conv from libs.message import conversion as conv
import urllib.request import urllib.request
import xmltodict, json import xmltodict, json
import sys, os, time import sys, os
import smbclient import smbclient
@ -97,6 +97,7 @@ def lastcall2matrix(tam,tam_no):
def fritzab2matrix(tam): def fritzab2matrix(tam):
### CHECK AND GET MESSAGES FROM FRITZBOX ### ### CHECK AND GET MESSAGES FROM FRITZBOX ###
############################################ ############################################
@ -124,7 +125,7 @@ def fritzab2matrix(tam):
for a in messages: for a in messages:
# format the information regarding the message # format the information regarding the message
msg_info = a['Date'] + " - " + str(a['Number']) msg_info = a['Date'] + " - " + a['Number']
if a['Name']: if a['Name']:
msg_info += " (" + a['Name'] + ") " msg_info += " (" + a['Name'] + ") "
@ -172,7 +173,6 @@ def fritzab2matrix(tam):
def multitam(tams): def multitam(tams):
time.sleep(10)
for tam in tams.keys(): for tam in tams.keys():
print("Check TAM {}.".format(tam)) print("Check TAM {}.".format(tam))
fritzab2matrix(tam) fritzab2matrix(tam)