Compare commits
No commits in common. "1949f9f84a26de68d8310cad65a1a9ac08a94303" and "6652def3515fa56710ae5dfc093bbd16470e69de" have entirely different histories.
1949f9f84a
...
6652def351
|
@ -70,20 +70,13 @@ def get_last_call():
|
|||
except:
|
||||
print("Couldn't connect to Box")
|
||||
missed_calls = fc.get_missed_calls(False,1,1)
|
||||
|
||||
if len(missed_calls) > 0:
|
||||
return missed_calls[0]
|
||||
else:
|
||||
return False
|
||||
return missed_calls[0]
|
||||
|
||||
def lastcall2matrix(tam,tam_no):
|
||||
# Call Watch to Matrix
|
||||
if env_call_watch and not at_least_one_new_message:
|
||||
c = get_last_call()
|
||||
if c:
|
||||
c_msg = "{} - {} ({})".format(c.Date, c.Caller, c.Name)
|
||||
else:
|
||||
return False
|
||||
c_msg = "{} - {} ({})".format(c.Date, c.Caller, c.Name)
|
||||
|
||||
# ... and send message and file to Matrix Room
|
||||
## if Number of a TAM and the last call match
|
||||
|
|
|
@ -18,6 +18,6 @@ markdown
|
|||
matrix-nio # [e2e]>=0.18.3
|
||||
peewee
|
||||
Pillow
|
||||
python-magic
|
||||
python_magic
|
||||
uuid
|
||||
|
||||
|
|
Loading…
Reference in New Issue