예제 #1
0
    def today(self):
        fdate = parse_date(date=self.date, localize=False).date()

        if fdate == today() and not self.period == 'Postponed':
            return True

        return False
예제 #2
0
    def live(self):
        fdate = parse_date(date=self.date, localize=False).date()

        if fdate == today() and self.period not in [
                'PreMatch', 'FullTime', 'Postponed'
        ]:
            return True

        return False
예제 #3
0
    def today(self):
        fdate = parse_date(date=self.date, localize=False).date()
        fdate = fdate == today() and self.period != 'Postponed'

        return fdate
예제 #4
0
    def live(self):
        pastp = ['PreMatch', 'FullTime', 'Postponed']
        fdate = parse_date(date=self.date, localize=False).date()
        fdate = fdate == today() and self.period not in pastp

        return fdate