Merge pull request #2559 from BerriAI/litellm_show_spend_correctly

(fix) admin ui - order spend by date
This commit is contained in:
Ishaan Jaff 2024-03-16 16:43:13 -07:00 committed by GitHub
commit ac6c69ff89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 34 additions and 34 deletions

View file

@ -4520,7 +4520,7 @@ async def global_spend_logs(
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
if api_key is None:
sql_query = """SELECT * FROM "MonthlyGlobalSpend";"""
sql_query = """SELECT * FROM "MonthlyGlobalSpend" ORDER BY "date";"""
response = await prisma_client.db.query_raw(query=sql_query)