feat: Add recent performance stability stats (matches/days) to player profile

This commit is contained in:
2026-01-28 15:11:31 +08:00
parent a5a9016b7f
commit f110ae52f0
3 changed files with 131 additions and 1 deletions

View File

@@ -202,6 +202,9 @@ def detail(steam_id):
})
map_stats_list.sort(key=lambda x: x['matches'], reverse=True)
# --- New: Recent Performance Stats ---
recent_stats = StatsService.get_recent_performance_stats(steam_id)
return render_template('players/profile.html',
player=player,
features=features,
@@ -211,7 +214,8 @@ def detail(steam_id):
distribution=distribution,
map_stats=map_stats_list,
l2_stats=l2_stats,
side_stats=side_stats)
side_stats=side_stats,
recent_stats=recent_stats)
@bp.route('/comment/<int:comment_id>/like', methods=['POST'])
def like_comment(comment_id):