]> git.cworth.org Git - lmno-server/commitdiff
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)
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).


No differences found