Spaces:
Sleeping
Sleeping
get latest 4 records from potholes and videos table
Browse files
app.py
CHANGED
|
@@ -140,7 +140,7 @@ async def get_pothole_reports():
|
|
| 140 |
reports_potholes_response = supabase.table("potholes").select("*").eq("category", "potholes").execute()
|
| 141 |
|
| 142 |
# Fetch all videos reports
|
| 143 |
-
reports_videos_response = supabase.table("videos").
|
| 144 |
|
| 145 |
return reports_potholes_response.data + reports_videos_response.data
|
| 146 |
except Exception as e:
|
|
|
|
| 140 |
reports_potholes_response = supabase.table("potholes").select("*").eq("category", "potholes").execute()
|
| 141 |
|
| 142 |
# Fetch all videos reports
|
| 143 |
+
reports_videos_response = supabase.table("videos").select("*").eq("category", "potholes").execute()
|
| 144 |
|
| 145 |
return reports_potholes_response.data + reports_videos_response.data
|
| 146 |
except Exception as e:
|