fix(interface): 修复仪表盘详情

This commit is contained in:
2025-12-21 06:27:00 +08:00
parent e0417981b1
commit cb78290f05
3 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ class DashboardScreen(Screen):
is_activated = 1
nextdate = min(nextdate, i.nextdate())
res[1] = f"下一次复习: {nextdate}\n"
res[1] += f"{is_due if "需要复习" else "当前无需复习"}"
res[1] += f"{"需要复习" if is_due else "当前无需复习"}"
if not is_activated:
res[1] = " 尚未激活"
return res