feat: Add recent performance stability stats (matches/days) to player profile
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user