Skip to content

Commit 104dabe

Browse files
author
spidey789
committed
added is_contest_complete function and updated teams.html printing of teams by adding conditionals
1 parent 1a5fdda commit 104dabe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/contestadmin/models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ def get_participation(self):
7171
return self.FORMAT[self.participation - 1][1]
7272
else:
7373
return 'TBA'
74+
75+
76+
def is_contest_complete(self):
77+
"""
78+
Returns true if contest is complete, false otherwise
79+
"""
80+
81+
return self.results is not None

0 commit comments

Comments
 (0)