sunilchm commited on
Commit
a3a7660
·
1 Parent(s): 5f8b621

print long and lan

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -238,7 +238,7 @@ async def upload_image(
238
  "image_name": file.filename,
239
  "image_url": url,
240
  "location": location_point,
241
- "location_text": f"{lon:.6f} {lat:.6f}",
242
  "status": "In Progress",
243
  "category": category,
244
  "approved": is_approved,
 
238
  "image_name": file.filename,
239
  "image_url": url,
240
  "location": location_point,
241
+ "location_text": f"{lon:.6f} {lat:.6f}" if lat and lon else location or None,
242
  "status": "In Progress",
243
  "category": category,
244
  "approved": is_approved,