Playtime stats between players only; no ping; page-wide grid
K/D, headshot %, kills and deaths (drawer, Top players, staff session lists) now come from pt_events, so kills of bots and deaths to bots don't count, as in Records; damage per round and MVPs are gone, since only the game's counters have them and those include bots. Average ping and the record count footnote are no longer shown. The server header's grid now runs behind the whole page.
This commit is contained in:
parent
c7fbff0e43
commit
2516759fa9
6 changed files with 120 additions and 81 deletions
|
|
@ -359,7 +359,7 @@ func (s *Server) playerPlaytime(r *http.Request, steamid string, staff bool) map
|
|||
}
|
||||
out := map[string]any{"player": p}
|
||||
if staff {
|
||||
extra, err := s.pt.PlayerStaff(ctx, n, now)
|
||||
extra, err := s.pt.PlayerStaff(ctx, n)
|
||||
if err != nil {
|
||||
slog.Warn("staff playtime for a player", "steamid", steamid, "err", err)
|
||||
return out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue