mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
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:
parent
d3c839147e
commit
4db370e851
2 changed files with 6 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue