def today(self): fdate = parse_date(date=self.date, localize=False).date() if fdate == today() and not self.period == 'Postponed': return True return False
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
def today(self): fdate = parse_date(date=self.date, localize=False).date() fdate = fdate == today() and self.period != 'Postponed' return fdate
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