示例#1
0
 def isActive(self):
     value1, _ = event_boards_timer.getTimeStatus(self.__startDate)
     value2, _ = event_boards_timer.getTimeStatus(self.__endDate)
     return value1 < 0 < value2
示例#2
0
 def isStartSoon(self):
     value, period = event_boards_timer.getTimeStatus(self.__startDate)
     if period == event_boards_timer.FORMAT_DAY_STR:
         return self.EVENT_DAYS_LEFT_TO_START > value > 0
     return value > 0
示例#3
0
 def isRegistrationFinished(self):
     value, _ = event_boards_timer.getTimeStatus(
         self.__participantsFreezeDeadline)
     return value < 0
示例#4
0
 def isFinished(self):
     value, _ = event_boards_timer.getTimeStatus(self.__endDate)
     return value < 0
示例#5
0
 def isStarted(self):
     value, _ = event_boards_timer.getTimeStatus(self.__startDate)
     return value < 0