Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
fsoest committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4aee993 commit d7ff0b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S1/waitinglists/views.py
Original file line number Diff line number Diff line change
@@ -40,7 +40,9 @@ def module_2_completion(user, fetch=False):
res, time = send_moodle_activity_completion(1524005, quiz_id)
if res:
time = datetime.fromtimestamp(time)
QuizCompletion.objects.create(user=user, quiz_id=quiz_id, time=time)
QuizCompletion.objects.create(
user=user, quiz_id=quiz_id, date_completed=time
)
# Update completion_dict to include the new completion
completion_dict[quiz_id] = QuizCompletion(
user=user, quiz_id=quiz_id, date_completed=time

0 comments on commit d7ff0b7

Please sign in to comment.