保存 NAS 健康系统 UI7 代码与本机维护基线

This commit is contained in:
weiyuqing committed 2026-10-17 13:29:12 +08:00
1 parent 1767b4921a
commit 8546ba23ff
80 files changed
+4984 -381

No files matched your search

+2 -1
View File
@@ -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"])