Compare commits
No commits in common. "02154d4517a5b5864d9766ae5b7e49c08bc023d3" and "ce2f21d4a65a9fe987e76786fe67571fee9b5d4a" have entirely different histories.
02154d4517
...
ce2f21d4a6
|
|
@ -59,7 +59,7 @@ def getGpsDistance():
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
try:
|
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()
|
row = res.fetchone()
|
||||||
|
|
||||||
if row:
|
if row:
|
||||||
|
|
@ -101,7 +101,7 @@ def getGpsDistance():
|
||||||
else:
|
else:
|
||||||
prettyDistance = "No GPS Signal"
|
prettyDistance = "No GPS Signal"
|
||||||
fwd_azimuth = 0.0
|
fwd_azimuth = 0.0
|
||||||
rTime = datetime.utcnow()
|
rTime = datetime.utcnow
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user