Skip to content

Commit

Permalink
Fix missing late flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 12, 2023
1 parent 651d09a commit 2fe026b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ def can_submit(self):

@property
def can_resubmit(self):
return self.get_actual_late_flag().can_resubmit
late_flag = self.get_actual_late_flag()
if late_flag:
return late_flag.can_resubmit
return False

def get_actual_late_flag(self) -> Optional[LateTag]:
"""
Expand Down

0 comments on commit 2fe026b

Please sign in to comment.