.
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user