Skip to content

Commit

Permalink
Merge pull request #1485 from codalab/develop
Browse files Browse the repository at this point in the history
Minor fix (merge develop into master)
  • Loading branch information
Didayolo authored Jun 12, 2024
2 parents 47fc666 + e3dbec5 commit 8555b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/competitions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def can_user_make_submissions(self, user):

qs = self.submissions.filter(owner=user, parent__isnull=True).exclude(status='Failed')
total_submission_count = qs.count()
daily_submission_count = qs.filter(created_when__day=now().day).count()
daily_submission_count = qs.filter(created_when__date=now().date()).count()

if self.max_submissions_per_day:
if daily_submission_count >= self.max_submissions_per_day:
Expand Down

0 comments on commit 8555b6b

Please sign in to comment.