Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
f8b491f
1
Parent(s):
6874ffd
....
Browse files
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:
|