增加比赛倒计时的功能

This commit is contained in:
hohoTT
2015-09-22 12:56:10 +08:00
parent 3b8eef1bab
commit 371b9625c2
12 changed files with 842 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ class Contest(models.Model):
# 没有开始 返回1
return 1
elif self.end_time < now():
# 已经结束 返回0
# 已经结束 返回-1
return -1
else:
# 正在进行 返回0