Add PMC/Scav breakdown to server-wide stats page - #357
Merged
Conversation
Adds PMC and Scav raid counts and survival rates to the server-wide stats page at /quma/stats. Previously only per-user profile pages showed this breakdown. Changes: - Add pmc_raids, scav_raids, pmc_survival_rate, scav_survival_rate fields to ServerRaidStats struct - Query PMC/Scav stats in get_server_raid_stats() using player_side='Pmc' and player_side='Savage' filters (headless clients excluded) - Display PMC and Scav stats in equal-weight cards on stats.html Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reduces database round-trips by combining separate count and survived queries into single queries using SUM(CASE WHEN ...), matching the existing overall_survival_rate pattern. Before: 4 queries (PMC count, PMC survived, Scav count, Scav survived) After: 2 queries (PMC combined, Scav combined) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cebarks
force-pushed
the
fix-stats-pmc-scav
branch
from
July 29, 2026 04:34
2e68378 to
aa2f554
Compare
cebarks
enabled auto-merge (squash)
July 29, 2026 04:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/quma/statsChanges
pmc_raids,scav_raids,pmc_survival_rate,scav_survival_ratefields toServerRaidStatsstructget_server_raid_stats()usingplayer_side='Pmc'andplayer_side='Savage'filters (headless clients excluded)stats.htmltemplate with new PMC/Scav stat cardsTest plan
just check)just clippy)Implemented with the help of Claude Code