From de70a4cf6a0802e59c197dcd0198b297c0631d2f Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 13 Feb 2020 01:16:31 +0300 Subject: [PATCH] fix remove --- bots/modules/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/ping.py b/bots/modules/ping.py index a37246a..d753777 100644 --- a/bots/modules/ping.py +++ b/bots/modules/ping.py @@ -19,7 +19,7 @@ class PingBotCategory(models.Model): def remove_user(self, uid: int): user_ids = set(self.user_ids or []) - user_ids.add(uid) + user_ids.remove(uid) self.user_ids = list(user_ids) class Meta: