.
This commit is contained in:
+2
-1
@@ -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", [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user