.
This commit is contained in:
+4
-3
@@ -223,7 +223,8 @@ def renew_oauth2_token(dry: bool) -> bool:
|
|||||||
def run_tests() -> bool:
|
def run_tests() -> bool:
|
||||||
http.client.HTTPConnection.debuglevel = 1
|
http.client.HTTPConnection.debuglevel = 1
|
||||||
# print(f" → priority: {grist_fetch_priority_bals()}")
|
# 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
|
return True
|
||||||
|
|
||||||
|
|
||||||
@@ -270,10 +271,10 @@ def grist_fetch_new_bals() -> list[dict]:
|
|||||||
fields = r["fields"]
|
fields = r["fields"]
|
||||||
|
|
||||||
# Récupération du timestamp Grist (ex: 1779124323.67)
|
# 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
|
# Si le timestamp existe, on valide l'écart de temps
|
||||||
if last_pass_timestamp is not None:
|
if finish_timestamp is not None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Si pas de date (jamais passée)
|
# Si pas de date (jamais passée)
|
||||||
|
|||||||
Reference in New Issue
Block a user