This commit is contained in:
MAURA Mathieu
2026-06-15 15:50:08 +02:00
parent 75b684383f
commit a635db900a
+2 -1
View File
@@ -444,10 +444,11 @@ def grist_priority_bals() -> dict:
""" """
try: try:
# 1. Récupération triée via l'API Grist # 1. Récupération triée via l'API Grist
params = {"limit": 1, "filter": {"priority": [True], COL_SYNC: [True]}} params = f'{"limit": 1, "filter": {"priority": [True], {COL_SYNC}: [True]}}'
resp = requests.get( resp = requests.get(
grist_url(TABLE_BALS), headers=GRIST_HEADERS, params=params, timeout=15 grist_url(TABLE_BALS), headers=GRIST_HEADERS, params=params, timeout=15
) )
resp.raise_for_status() resp.raise_for_status()
records = resp.json().get("records", []) records = resp.json().get("records", [])