Skip to content

Commit

Permalink
Module 2 cleanup cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoest committed Jan 11, 2025
1 parent b8a116d commit 5ee7bf5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions S1/waitinglists/management/commands/module_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def handle(self, *args, **kwargs):
module_1_completion_date = WaitingList.objects.get(
module=mod1, user__username=user
).date_completed
completions = QuizCompletion.objects.filter(user__username=user).order_by(
"date_completed"
completions = list(
QuizCompletion.objects.filter(user__username=user).order_by(
"date_completed"
)
)
match len(completions):
case 0:
Expand Down

0 comments on commit 5ee7bf5

Please sign in to comment.