Skip to content

Commit

Permalink
fixed geo point parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
EricAndrechek committed Apr 10, 2024
1 parent f5d1360 commit 79ed3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking-dashboard/backend/sql/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def add_datum(name, data):
longitude = None
# convert geometry to lat/lon
if data.geo is not None:
latitude = data.geo.y
longitude = data.geo.x
latitude = data.geo.split(" ")[0].split("(")[1]
longitude = data.geo.split(" ")[1].split(")")[0]
mqtt_data = {
"name": name,
"lat": latitude,
Expand Down

0 comments on commit 79ed3c7

Please sign in to comment.