1.1.0: Updated Profile

This commit is contained in:
2026-01-26 18:36:47 +08:00
parent 727105f11e
commit 8cc359b0ec
20 changed files with 856 additions and 251 deletions

View File

@@ -11,10 +11,15 @@ def index():
map_name = request.args.get('map')
date_from = request.args.get('date_from')
# Fetch summary stats (for the dashboard)
summary_stats = StatsService.get_team_stats_summary()
matches, total = StatsService.get_matches(page, Config.ITEMS_PER_PAGE, map_name, date_from)
total_pages = (total + Config.ITEMS_PER_PAGE - 1) // Config.ITEMS_PER_PAGE
return render_template('matches/list.html', matches=matches, total=total, page=page, total_pages=total_pages)
return render_template('matches/list.html',
matches=matches, total=total, page=page, total_pages=total_pages,
summary_stats=summary_stats)
@bp.route('/<match_id>')
def detail(match_id):