Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
8a8ec1b
1
Parent(s):
31d16a1
Update approve_db.py
Browse files
Powers/database/approve_db.py
CHANGED
@@ -26,8 +26,8 @@ class Approve(MongoDB):
|
|
26 |
|
27 |
def add_approve(self, user_id: int, user_name: str):
|
28 |
with INSERTION_LOCK:
|
29 |
-
self.chat_info["users"].append((user_id, user_name))
|
30 |
if not self.check_approve(user_id):
|
|
|
31 |
return self.update(
|
32 |
{"_id": self.chat_id},
|
33 |
{"users": self.chat_info["users"]},
|
|
|
26 |
|
27 |
def add_approve(self, user_id: int, user_name: str):
|
28 |
with INSERTION_LOCK:
|
|
|
29 |
if not self.check_approve(user_id):
|
30 |
+
self.chat_info["users"].append((user_id, user_name))
|
31 |
return self.update(
|
32 |
{"_id": self.chat_id},
|
33 |
{"users": self.chat_info["users"]},
|