Spaces:
Sleeping
Sleeping
Update api/endpoints/location.py
Browse files
api/endpoints/location.py
CHANGED
|
@@ -32,7 +32,7 @@ async def get_coordinates_v1(cord):
|
|
| 32 |
async def process_coordinates(supabase_user_data, max_concurrency=15):
|
| 33 |
coords=[]
|
| 34 |
with ThreadPoolExecutor(max_workers=15) as executor:
|
| 35 |
-
futures = [executor.submit(LocationService.
|
| 36 |
for future in concurrent.futures.as_completed(futures):
|
| 37 |
|
| 38 |
try:
|
|
|
|
| 32 |
async def process_coordinates(supabase_user_data, max_concurrency=15):
|
| 33 |
coords=[]
|
| 34 |
with ThreadPoolExecutor(max_workers=15) as executor:
|
| 35 |
+
futures = [executor.submit(LocationService.get_lat_lng,cord) for cord in supabase_user_data]
|
| 36 |
for future in concurrent.futures.as_completed(futures):
|
| 37 |
|
| 38 |
try:
|