fix Last Sync value
This commit is contained in:
parent
ffd8493167
commit
c8b01106d8
2
main.py
2
main.py
@ -245,7 +245,7 @@ class GadgetbridgeMQTTPublisher:
|
||||
return cursor.fetchone()[0] or 0
|
||||
|
||||
def query_last_sync(self, cursor) -> Any:
|
||||
cursor.execute("SELECT MAX(TIMESTAMP) FROM XIAOMI_ACTIVITY_SAMPLE")
|
||||
cursor.execute("SELECT MAX(TIMESTAMP) FROM HEART_PULSE_SAMPLE")
|
||||
last_sync_ts = cursor.fetchone()[0]
|
||||
return (
|
||||
datetime.fromtimestamp(last_sync_ts).isoformat() if last_sync_ts else None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user