From ef2059b6e7439ede3e209557032dd59839c251fd Mon Sep 17 00:00:00 2001 From: MAURA Mathieu Date: Tue, 16 Jun 2026 03:13:50 +0200 Subject: [PATCH] . --- imapsync_daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imapsync_daemon.py b/imapsync_daemon.py index eabb582..f90adac 100755 --- a/imapsync_daemon.py +++ b/imapsync_daemon.py @@ -223,7 +223,8 @@ def renew_oauth2_token(dry: bool) -> bool: def run_tests() -> bool: http.client.HTTPConnection.debuglevel = 1 # print(f" → priority: {grist_fetch_priority_bals()}") - print(f" → repasses: {grist_fetch_repass_bals()}") + # print(f" → repasses: {grist_fetch_repass_bals()}") + print(f" → repasses: {grist_fetch_new_bals()}") return True @@ -270,10 +271,10 @@ def grist_fetch_new_bals() -> list[dict]: fields = r["fields"] # Récupération du timestamp Grist (ex: 1779124323.67) - last_pass_timestamp = fields.get(COL_LAST_PASS) + finish_timestamp = fields.get(COL_FINISH_TIME) # Si le timestamp existe, on valide l'écart de temps - if last_pass_timestamp is not None: + if finish_timestamp is not None: continue # Si pas de date (jamais passée)