Spaces:
Running
Running
Fix server playback backfill session filter
Browse files
backfill_playback_times.py
CHANGED
|
@@ -31,8 +31,8 @@ def run_backfill(session_id=None, progress=None):
|
|
| 31 |
while True:
|
| 32 |
params = {"select": "action_id,session_id,start_frame,end_frame", "start_time_seconds": "is.null",
|
| 33 |
"order": "action_id", "limit": "1000", "offset": str(offset)}
|
| 34 |
-
if
|
| 35 |
-
params["session_id"] = f"eq.{
|
| 36 |
response = client.get(f"{url}/actions", params=params)
|
| 37 |
response.raise_for_status()
|
| 38 |
page = response.json()
|
|
|
|
| 31 |
while True:
|
| 32 |
params = {"select": "action_id,session_id,start_frame,end_frame", "start_time_seconds": "is.null",
|
| 33 |
"order": "action_id", "limit": "1000", "offset": str(offset)}
|
| 34 |
+
if session_id:
|
| 35 |
+
params["session_id"] = f"eq.{session_id}"
|
| 36 |
response = client.get(f"{url}/actions", params=params)
|
| 37 |
response.raise_for_status()
|
| 38 |
page = response.json()
|