mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 03:57:09 +00:00
add user stat endpoint
This commit is contained in:
@@ -23,3 +23,8 @@ class UserSchema(ModelSchema):
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ["id", "email", "username", "created_at", "achievements"]
|
||||
|
||||
|
||||
class StatSchema(Schema):
|
||||
total_attempts: int
|
||||
solved_tasks: int
|
||||
|
||||
Reference in New Issue
Block a user