... | ... |
@@ -67,7 +67,6 @@ def marque_comme_lu(id_appel, number): |
67 | 67 |
def appels(session_token): |
68 | 68 |
method = "/call/log" |
69 | 69 |
resultat = connexion_get(method, headers={"X-Fbx-App-Auth": session_token}) |
70 |
- appel_depuis_portable = re.compile('^(0|\\+33)[67]') |
|
71 | 70 |
for appel in resultat["result"]: |
72 | 71 |
if appel.get('new') and appel.get('type') == 'missed' and appel_depuis_portable.match(appel.get('number')): |
73 | 72 |
envoi_sms(appel.get('number')) |
... | ... |
@@ -75,6 +74,7 @@ def appels(session_token): |
75 | 74 |
time.sleep(5) |
76 | 75 |
|
77 | 76 |
signal.signal(signal.SIGTERM, stoppe) |
77 |
+appel_depuis_portable = re.compile('^(0|\\+33)[67]') |
|
78 | 78 |
while True: |
79 | 79 |
try: |
80 | 80 |
session_token = mksession() |