1.1.0: Updated Profile
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user