示例#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