style(spend): format CloudZero and Focus recovery row coercion

Required lint failed ruff format on the ternary that unwraps a polars DataFrame or list before alias recovery

Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-09-03 15:25:46 +00:00
parent d3c839147e
commit 4db370e851
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -101,7 +101,9 @@ class LiteLLMDatabase:
usage_rows: Final = (
db_response.to_dicts()
if isinstance(db_response, pl.DataFrame)
else db_response if isinstance(db_response, list) else []
else db_response
if isinstance(db_response, list)
else []
)
# v1.99 double-hashed DailyUserSpend.api_key values miss the
# VerificationToken join above; recover alias/team for those rows.

View file

@ -103,7 +103,9 @@ class FocusLiteLLMDatabase:
usage_rows: Final = (
db_response.to_dicts()
if isinstance(db_response, pl.DataFrame)
else db_response if isinstance(db_response, list) else []
else db_response
if isinstance(db_response, list)
else []
)
# v1.99 double-hashed DailyUserSpend.api_key values miss the
# VerificationToken join above; recover alias/team for those rows.