sunilchm commited on
Commit
a067e03
·
1 Parent(s): b8220a5

add variance value

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -224,7 +224,7 @@ async def upload_image(
224
  location_point = f"Point({lon:.6f} {lat:.6f})" if lat and lon else None
225
  guid = str(uuid.uuid4())
226
  variance_levels = ["Low", "Mid", "High"]
227
- getvariancevalue = random.choice(variance_levels) if category == "Potholes" else None
228
  try:
229
  validation_response = supabase.table("validation").select("location_text").execute()
230
  approved_locations = {item['location_text'] for item in validation_response.data}
 
224
  location_point = f"Point({lon:.6f} {lat:.6f})" if lat and lon else None
225
  guid = str(uuid.uuid4())
226
  variance_levels = ["Low", "Mid", "High"]
227
+ getvariancevalue = random.choice(variance_levels) if category == "potholes" else None
228
  try:
229
  validation_response = supabase.table("validation").select("location_text").execute()
230
  approved_locations = {item['location_text'] for item in validation_response.data}