Fix small bugs
This commit is contained in:
parent
9b1724cdad
commit
3fb78e714d
4 changed files with 13 additions and 2 deletions
|
@ -790,7 +790,9 @@ class UserContestSubmissionsAjax(UserContestSubmissions):
|
|||
|
||||
def contest_time(self, s):
|
||||
if s.contest.participation.live:
|
||||
return s.date - s.contest.participation.real_start
|
||||
if self.contest.time_limit:
|
||||
return s.date - s.contest.participation.real_start
|
||||
return s.date - self.contest.start_time
|
||||
return None
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue