From 81be6ef622ab58615d88bcb836dbbab4cf1c30d1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 29 Apr 2020 19:39:27 +0200 Subject: [PATCH] Add a few assertions --- royalpack/commands/cvstats.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/royalpack/commands/cvstats.py b/royalpack/commands/cvstats.py index 1c1489c3..68e2239d 100644 --- a/royalpack/commands/cvstats.py +++ b/royalpack/commands/cvstats.py @@ -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}")