delay = input("Enter delay required to sync : \n") if delay is "": delay = 0 delay = float(delay) return (team_id, delay) if __name__ == "__main__": old_score = 0 new_score = 0 gameday = False season = False light.setup() team_id, delay = setup_nhl() try: while (True): time.sleep(1) # check if in season season = nhl.check_season() if season: # check game gameday = nhl.check_if_game(team_id)
delay = raw_input("Enter delay required to sync : \n") if delay is "": delay = 0 delay = float(delay) return (team_id, delay) if __name__ == "__main__": old_score = 0 new_score = 0 gameday = False season = False light.setup() team_id, delay = setup_nhl() try: while (True): time.sleep(1) # check if in season season = nhl.check_season() if season: # check game gameday = nhl.check_if_game(team_id)