Skip to content

Commit fe26237

Browse files
Updated Contest status accessor
The Contest.results attribute is initialized as a blank string. The check performed by Contest.is_contest_complete does not correctly handle this case.
1 parent 6d6e09e commit fe26237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contestadmin/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def is_contest_complete(self):
7878
Returns true if contest is complete, false otherwise
7979
"""
8080

81-
return self.results is not None
81+
return self.results != "" and self.results is not None

0 commit comments

Comments
 (0)