mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 13:42: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
|
# Build the standings URL with query parameters
|
||||||
standings_url = league_config['standings_url']
|
standings_url = league_config['standings_url']
|
||||||
params = {
|
params = {
|
||||||
'season': league_config.get('season', 2025),
|
# 'season': league_config.get('season', 2025),
|
||||||
'level': league_config.get('level', 1),
|
'level': league_config.get('level', 1),
|
||||||
'sort': league_config.get('sort', 'winpercent:desc,gamesbehind:asc')
|
'sort': league_config.get('sort', 'winpercent:desc,gamesbehind:asc')
|
||||||
}
|
}
|
||||||
@@ -789,7 +789,7 @@ class LeaderboardManager:
|
|||||||
'standings': top_teams,
|
'standings': top_teams,
|
||||||
'timestamp': time.time(),
|
'timestamp': time.time(),
|
||||||
'league': league_key,
|
'league': league_key,
|
||||||
'season': params['season'],
|
# 'season': params['season'],
|
||||||
'level': params['level']
|
'level': params['level']
|
||||||
}
|
}
|
||||||
self.cache_manager.save_cache(cache_key, cache_data)
|
self.cache_manager.save_cache(cache_key, cache_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user