fix: relax history requirements for chart generation

This commit is contained in:
fujie
2026-02-11 13:50:42 +08:00
parent d71b4a7351
commit d7c25aa973

View File

@@ -1198,8 +1198,8 @@ class OpenWebUIStats:
history = self.load_history()
print(f"📊 History records loaded: {len(history)}")
if len(history) < 3:
print("⚠️ Skipping chart upload: not enough history (<3 records)")
if len(history) < 1:
print("⚠️ Skipping chart upload: no history")
return
# 准备数据点