cleaned up a print function, added check for same league
This commit is contained in:
parent
47c1cb2c06
commit
a6e5e541fc
|
@ -32,7 +32,6 @@ def update_loop():
|
|||
for game_time in game_times:
|
||||
this_game, state, discrim_string = master_games_dic[game_time]
|
||||
test_string = this_game.gamestate_display_full()
|
||||
print(discrim_string)
|
||||
state["leagueoruser"] = discrim_string
|
||||
state["display_inning"] = this_game.inning #games need to be initialized with the following keys in state:
|
||||
#is_league, bool
|
||||
|
|
|
@ -15,7 +15,7 @@ $(document).ready(function (){
|
|||
//get all leagues
|
||||
leagues = []
|
||||
for (var key in json) {
|
||||
if (json[key].is_league) {
|
||||
if (json[key].is_league && !leagues.includes(json[key].leagueoruser)) {
|
||||
leagues.push(json[key].leagueoruser)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user