add user stat endpoint

This commit is contained in:
Timur
2025-03-02 21:58:43 +03:00
parent 0f12404222
commit 1136f7abb9
2 changed files with 36 additions and 1 deletions
+5
View File
@@ -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