fix: hide daily quota without limit

This commit is contained in:
2026-06-09 16:23:13 +08:00
parent 98410b0fe0
commit 3b9d092c06
4 changed files with 8 additions and 5 deletions
+1 -3
View File
@@ -297,10 +297,8 @@ def window_cell(account: dict[str, Any], window_id: str) -> str:
def daily_quota_cell(account: dict[str, Any]) -> str:
limit = account.get("daily_quota_limit")
used = account.get("daily_quota_used")
if limit is None and used is None:
return "-"
if limit is None:
return str(used)
return "-"
return f"{used or 0}/{limit}"