Captain Ezio commited on
Commit
f8b491f
·
1 Parent(s): 6874ffd
Files changed (1) hide show
  1. Powers/database/approve_db.py +1 -1
Powers/database/approve_db.py CHANGED
@@ -19,7 +19,7 @@ class Approve(MongoDB):
19
 
20
  def check_approve(self, user_id: int):
21
  with INSERTION_LOCK:
22
- return bool(user_id in self.chat_info["users"])
23
 
24
  def add_approve(self, user_id: int, user_name: str):
25
  with INSERTION_LOCK:
 
19
 
20
  def check_approve(self, user_id: int):
21
  with INSERTION_LOCK:
22
+ return bool(user_id in i for i in self.chat_info["users"])
23
 
24
  def add_approve(self, user_id: int, user_name: str):
25
  with INSERTION_LOCK: