sunilchm commited on
Commit
0b95e11
·
1 Parent(s): df0ebd8

get latest 4 records from potholes and videos table

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")..select("*").eq("category", "potholes").execute()
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: