Skip to content

Commit

Permalink
point on surface api updated for result in a dict format
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Sep 5, 2023
1 parent 508cd9f commit a5f6dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/tasks/tasks_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ async def get_point_on_surface(
GROUP BY id; """)

result = db.execute(query)
result = result.fetchall()
return result
result_dict_list = [{"id": row[0], "point": row[1]} for row in result.fetchall()]
return result_dict_list


@router.post("/near_me", response_model=tasks_schemas.TaskOut)
Expand Down

0 comments on commit a5f6dd6

Please sign in to comment.