feat: add math engine and puzzle services

This commit is contained in:
2026-08-09 01:52:20 +08:00
parent 6bcff55c4f
commit b99a22fc06
21 changed files with 1011 additions and 1 deletions
+12
View File
@@ -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]
],
}
)