fix: hide daily quota without limit
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user