Fix isActive
This commit is contained in:
parent
f5781db5b0
commit
ee6184fe43
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func (model *Response) String() string {
|
|||
}
|
||||
|
||||
func (model *Response) IsActive() bool {
|
||||
return !time.Now().After(model.Contest.EndTime) || model.Contest.isAlwaysActive()
|
||||
return (!time.Now().Before(model.Contest.StartTime) && !time.Now().After(model.Contest.EndTime)) || model.Contest.isAlwaysActive()
|
||||
}
|
||||
|
||||
func (model *Response) SetCreatorID(id uint) {
|
||||
|
|
Loading…
Reference in a new issue