def is_up_to_date(self): if get_curr_time()-self.now > datetime.timedelta(minutes=30): self.refresh()
def refresh(self): self.today = get_curr_date() self.now = get_curr_time() self.load_data() self.analyze_games()