1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Add a few assertions

This commit is contained in:
Steffo 2020-04-29 19:39:27 +02:00
parent 1c7f444592
commit 81be6ef622

View file

@ -70,6 +70,12 @@ class CvstatsCommand(rc.Command):
if self._is_ryg_member(m):
members_playing += 1
assert users_online >= members_online
assert users_online >= users_connected
assert users_online >= users_playing
assert members_online >= members_connected
assert members_online >= members_playing
log.debug(f"Total users: {users_total}")
log.debug(f"Total members: {members_total}")
log.debug(f"Online users: {users_online}")