{
let teams = [];
let games = [];
- let num_left = 5;
+ let groups_to_get = [
+ 'Group A',
+ 'Group B',
+ 'Group C',
+ 'Playoffs 9th-13th',
+ 'Playoffs'
+ ];
+ let num_left = groups_to_get.length;
let cb = function(response, group_name) {
teams = teams.concat(parse_teams_from_spreadsheet(response));
}
};
- get_group('Group A', cb);
- get_group('Group B', cb);
- get_group('Group C', cb);
- get_group('Playoffs', cb);
- get_group('Playoffs 9th-13th', cb);
+ for (const group of groups_to_get) {
+ get_group(group, cb);
+ }
};
function do_series(series)
let games_per_group = [];
let combined_teams = [];
let combined_games = [];
- let num_left = 5;
+ let groups_to_get = [
+ 'Group A',
+ 'Group B',
+ 'Group C',
+ 'Playoffs 9th-13th',
+ 'Playoffs'
+ ];
+ let num_left = groups_to_get.length;
let cb = function(response, group_name) {
let teams = parse_teams_from_spreadsheet(response);
}
};
- get_group('Group A', cb);
- get_group('Group B', cb);
- get_group('Group C', cb);
- get_group('Playoffs 9th-13th', cb);
- get_group('Playoffs', cb);
+ for (const group of groups_to_get) {
+ get_group(group, cb);
+ }
};
function stopcarousel()