]> git.cworth.org Git - empires-server/commit
admin: Fix admin page to correctly show active/idle games and players
authorCarl Worth <cworth@cworth.org>
Thu, 25 Jun 2020 01:32:54 +0000 (18:32 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 26 Jun 2020 14:37:59 +0000 (07:37 -0700)
commit3586642fb026f5caa5da24ec8a68862509f0d4d1
treea67efaf212685c6952035530644e9caadea1e375
parent443a21300369b2bfe01a6e62eaad91953541d9d8
admin: Fix admin page to correctly show active/idle games and players

A while ago we changed the storage for players. Previously we had a
_players array and a separate clients array for their
connections. Then at some point in the past we changed to an array
named "players" and instead of separate "clients" each player in
"players" now has its own list of connections.

Ever since that change the admin view has been broken since it wasn't
updated to track that change. Here we bring it up to date, (including
the addition of two nunjucks filters, "active" and "idle" to help with
this).
lmno.js
templates/admin.html