Auto-refresh player list + empire stats

This commit is contained in:
Chord 2020-05-13 22:57:07 +02:00
parent 96fcbba812
commit 26f743d907
3 changed files with 116 additions and 62 deletions

View file

@ -23,7 +23,6 @@ api.get('/stats', async (req, res, next) => {
console.log("WARNING: cannot find player info '" + players[i] + "'")
}
console.log(stats)
info.players = player_info
res.status(200).json({ ...stats, ...info });
} catch (e) {