mirror of
https://github.com/This-weiyuqing/mi-fitness-health.git
synced 2026-10-18 19:23:48 +08:00
保存 NAS 健康系统 UI7 代码与本机维护基线
This commit is contained in:
1 parent
1767b4921a
commit
8546ba23ff
80 files changed
+4984
-381
No files matched your search
@@ -306,7 +306,8 @@ async def _handle_get_connection_status() -> dict:
|
||||
"stress",
|
||||
"abnormal_heart_beat",
|
||||
]:
|
||||
state = db.get_sync_state(data_type)
|
||||
owner_scope = {"user_id": adapter.user_id} if getattr(adapter, "user_id", None) else {}
|
||||
state = db.get_sync_state(data_type, **owner_scope)
|
||||
if state and state.get("last_sync_at"):
|
||||
available_types.append(data_type)
|
||||
sync_time = datetime.fromisoformat(state["last_sync_at"])
|
||||
|
||||
Reference in new issue
Block a user