Okidi Norbert commited on
Commit ·
bbee34a
1
Parent(s): 2e5996c
Fix: automatically create Supabase buckets before upload
Browse files- analysis/team_analysis.py +1 -2
- app/api/analysis.py +0 -1
analysis/team_analysis.py
CHANGED
|
@@ -217,8 +217,7 @@ async def run_team_analysis(
|
|
| 217 |
await supabase.update("videos", video_id, {
|
| 218 |
"current_step": "Analysis complete",
|
| 219 |
"progress_percent": 100,
|
| 220 |
-
"status": result.get("status", "completed")
|
| 221 |
-
"has_annotated": True if result.get("status") == "completed" else False,
|
| 222 |
})
|
| 223 |
|
| 224 |
# Ensure all required fields are present (never null)
|
|
|
|
| 217 |
await supabase.update("videos", video_id, {
|
| 218 |
"current_step": "Analysis complete",
|
| 219 |
"progress_percent": 100,
|
| 220 |
+
"status": result.get("status", "completed")
|
|
|
|
| 221 |
})
|
| 222 |
|
| 223 |
# Ensure all required fields are present (never null)
|
app/api/analysis.py
CHANGED
|
@@ -356,7 +356,6 @@ async def run_analysis_background(video_id: str, mode: str, supabase: SupabaseSe
|
|
| 356 |
"progress_percent": 100,
|
| 357 |
"current_step": "Complete",
|
| 358 |
"completed_at": datetime.utcnow().isoformat(),
|
| 359 |
-
"has_annotated": True,
|
| 360 |
})
|
| 361 |
|
| 362 |
except Exception as e:
|
|
|
|
| 356 |
"progress_percent": 100,
|
| 357 |
"current_step": "Complete",
|
| 358 |
"completed_at": datetime.utcnow().isoformat(),
|
|
|
|
| 359 |
})
|
| 360 |
|
| 361 |
except Exception as e:
|