feat: add math engine and puzzle services
This commit is contained in:
@@ -40,5 +40,17 @@ class ProgressionProfileView(APIView):
|
||||
}
|
||||
for item in request.user.cards.select_related("card")
|
||||
],
|
||||
"recent_games": [
|
||||
{
|
||||
"kind": attempt.kind,
|
||||
"label": attempt.get_kind_display(),
|
||||
"difficulty": attempt.get_difficulty_display(),
|
||||
"status": attempt.status,
|
||||
"score": attempt.score,
|
||||
"duration_ms": attempt.duration_ms,
|
||||
"started_at": attempt.started_at,
|
||||
}
|
||||
for attempt in request.user.math_game_attempts.all()[:10]
|
||||
],
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user