Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
0c7ea415
Commit
0c7ea415
authored
Apr 21, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Add missing date_range_usage variable
parent
fc204dc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
main.py
main.py
+7
-0
No files found.
main.py
View file @
0c7ea415
...
...
@@ -2212,6 +2212,13 @@ async def dashboard_analytics(
recommendations
=
[]
optimization_savings
=
0
# Get date range usage summary
date_range_usage
=
None
if
from_datetime
or
to_datetime
:
start
=
from_datetime
or
(
datetime
.
now
()
-
timedelta
(
days
=
1
))
end
=
to_datetime
or
datetime
.
now
()
date_range_usage
=
analytics
.
get_token_usage_by_date_range
(
provider_filter
,
start
,
end
,
user_filter
=
user_filter_int
)
# Handle Decimal values from MySQL for JSON serialization
def
decimal_default
(
obj
):
if
isinstance
(
obj
,
Decimal
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment