Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix(H8): remove unused 'key' variable in record_quiz_attempt

unknownacadcf6c470c
diff --git a/deeptutor/learning/service.py b/deeptutor/learning/service.py
index d28186ec4..591060b2a 100644
--- a/deeptutor/learning/service.py
+++ b/deeptutor/learning/service.py
@@ -43,8 +43,6 @@ class LearningService:
def record_quiz_attempt(
self, progress: LearningProgress, attempt: QuizAttempt
) -> None:
- key = (attempt.question_id, attempt.knowledge_point_id)
-
if not attempt.is_correct and attempt.error_type is not None:
# Find existing error record for this question + knowledge point.
existing = None