Fix history fallback handling and auth status probe behavior

This commit is contained in:
2569718930@qq.com
2026-04-16 13:26:53 +08:00
parent 2ead56f59d
commit b635070106
4 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -72,10 +72,10 @@ def _load_history_with_fallback(path):
if get_state_storage_mode() == STATE_STORAGE_SQLITE:
return DailyRecordRepository().load_all()
return {}
data = load_history(path)
data = _load_json_if_exists(path)
if data:
return data
return _load_json_if_exists(path)
return load_history(path)
def _load_truth_history():