fix remove
This commit is contained in:
parent
6729092150
commit
de70a4cf6a
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user