Compare commits

..

No commits in common. "02154d4517a5b5864d9766ae5b7e49c08bc023d3" and "ce2f21d4a65a9fe987e76786fe67571fee9b5d4a" have entirely different histories.

View File

@ -59,7 +59,7 @@ def getGpsDistance():
cur = conn.cursor()
try:
res = cur.execute(f'SELECT lat, long, gpsDateTime, insertDateTime FROM location_data WHERE sender_id = {req_id} ORDER BY ROWID DESC LIMIT 1;')
res = cur.execute(f'SELECT lat, long, gpsDateTime, insertDateTime FROM location_data WHERE sender_id = {req_id} ORDER BY insertDateTime DESC;')
row = res.fetchone()
if row:
@ -101,7 +101,7 @@ def getGpsDistance():
else:
prettyDistance = "No GPS Signal"
fwd_azimuth = 0.0
rTime = datetime.utcnow()
rTime = datetime.utcnow