mirror of
https://github.com/This-weiyuqing/mi-fitness-health.git
synced 2026-10-17 18:55:37 +08:00
feat: improve cloud sync reliability and background status
This commit is contained in:
1 parent
ebc94b50e9
commit
7fcd06980f
12 files changed
+711
-82
No files matched your search
@@ -581,7 +581,6 @@ class Database:
|
||||
conn.commit()
|
||||
return cursor.rowcount > 0
|
||||
|
||||
|
||||
def update_sync_state(self, data_type: str, last_record_ts: datetime | None = None) -> None:
|
||||
"""Update sync state for a data type."""
|
||||
with self._get_connection() as conn:
|
||||
@@ -857,7 +856,6 @@ class Database:
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
for data_type, table_name, date_expr in [
|
||||
("spo2", "spo2_samples", "timestamp"),
|
||||
("stress", "stress_samples", "timestamp"),
|
||||
|
||||
Reference in new issue
Block a user