fix remove

This commit is contained in:
bakatrouble 2020-02-13 01:16:31 +03:00
parent 6729092150
commit de70a4cf6a

View File

@ -19,7 +19,7 @@ class PingBotCategory(models.Model):
def remove_user(self, uid: int): def remove_user(self, uid: int):
user_ids = set(self.user_ids or []) user_ids = set(self.user_ids or [])
user_ids.add(uid) user_ids.remove(uid)
self.user_ids = list(user_ids) self.user_ids = list(user_ids)
class Meta: class Meta: