Skip to content

Commit

Permalink
Update database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 6, 2024
1 parent 649c8a9 commit 9c4879c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordgsm/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ def update_metrics(self, servers: list[Server]):
"$each": [
{
"s": server.status,
"p": server.result["numplayers"],
"b": server.result["numbots"],
"p": server.result["numplayers"] if server.status else 0,
"b": server.result["numbots"] if server.status else 0,
"m": server.result["maxplayers"],
"c": datetime.utcnow(),
}
Expand Down

0 comments on commit 9c4879c

Please sign in to comment.