mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
Use current season for Leaderboard (#128)
Signed-off-by: Alex Resnick <adr8292@gmail.com> Co-authored-by: Alex Resnick <adr8282@gmail.com>
This commit is contained in:
@@ -631,7 +631,7 @@ class LeaderboardManager:
|
||||
# Build the standings URL with query parameters
|
||||
standings_url = league_config['standings_url']
|
||||
params = {
|
||||
'season': league_config.get('season', 2025),
|
||||
# 'season': league_config.get('season', 2025),
|
||||
'level': league_config.get('level', 1),
|
||||
'sort': league_config.get('sort', 'winpercent:desc,gamesbehind:asc')
|
||||
}
|
||||
@@ -789,7 +789,7 @@ class LeaderboardManager:
|
||||
'standings': top_teams,
|
||||
'timestamp': time.time(),
|
||||
'league': league_key,
|
||||
'season': params['season'],
|
||||
# 'season': params['season'],
|
||||
'level': params['level']
|
||||
}
|
||||
self.cache_manager.save_cache(cache_key, cache_data)
|
||||
|
||||
Reference in New Issue
Block a user