-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add bot token usage #607
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis pull request introduces a new feature to analyze bot token usage. It adds a new SQL function to calculate token usage statistics and updates the data access and service layers to support this functionality. Additionally, a new API endpoint is added to retrieve these statistics. Changes
|
"end_date": end_date.strftime("%Y-%m-%d"), | ||
}).execute() | ||
|
||
return [BotTokenUsageStats(**stats) for stats in resp.data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that resp.data
is not None
before iterating over it to prevent potential runtime errors. Consider adding a check or handling for this scenario.
9d9a4fe
to
070a316
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
No description provided.