-
Notifications
You must be signed in to change notification settings - Fork 111
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
PR for statistic endpoint #98
Conversation
web_app/api/user.py
Outdated
# Return total amounts and unique users count | ||
return {"total_amounts": total_amounts, "unique_users": unique_users_count} | ||
|
||
except Exception as e: |
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.
which particular exception your are trying to catch?
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.
still opened issue
web_app/api/serializers/user.py
Outdated
contract_address: str | None = Field( | ||
None, | ||
example="0xabc123...", | ||
description="The contract address of the user, or None if not deployed.", | ||
) | ||
|
||
|
||
class GetStats(BaseModel): |
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.
Model name can start with verb
Change it to StatsData
or StatsResponse
if it's response model
web_app/api/user.py
Outdated
# Return total amounts and unique users count | ||
return {"total_amounts": total_amounts, "unique_users": unique_users_count} | ||
|
||
except Exception as e: |
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.
still opened issue
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.
Looks good to me
No description provided.