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
+4 -1
View File
@@ -296,7 +296,10 @@ def build_training_samples(
runtime_history = DailyRecordRepository().load_all()
else:
runtime_history = load_history(_history_file_path())
if mode == STATE_STORAGE_SQLITE:
if isinstance(history_data, dict):
truth_history = runtime_history
training_feature_history = {}
elif mode == STATE_STORAGE_SQLITE:
truth_history = TruthRecordRepository().load_all()
training_feature_history = TrainingFeatureRecordRepository().load_all()
else: