mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
fix(spend_tracking): spend log with no filter
This commit is contained in:
parent
dce8e3efb8
commit
6a8d6ee0f8
1 changed files with 1 additions and 2 deletions
|
@ -1548,7 +1548,6 @@ async def view_spend_logs(
|
|||
raise Exception(
|
||||
f"Database not connected. Connect a database to your proxy - https://docs.litellm.ai/docs/simple_proxy#managing-auth---virtual-keys"
|
||||
)
|
||||
spend_logs = []
|
||||
if (
|
||||
start_date is not None
|
||||
and isinstance(start_date, str)
|
||||
|
@ -1667,7 +1666,7 @@ async def view_spend_logs(
|
|||
else:
|
||||
return [spend_log]
|
||||
else:
|
||||
spend_logs = await prisma_client.get_data(
|
||||
spend_log = await prisma_client.get_data(
|
||||
table_name="spend", query_type="find_all"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue