Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
878e3dd
1
Parent(s):
8171e04
Update flood_db.py
Browse files
Powers/database/flood_db.py
CHANGED
@@ -45,7 +45,7 @@ class Floods(MongoDB):
|
|
45 |
with INSERTION_LOCK:
|
46 |
curr = self.find_all({"chat_id": chat_id})
|
47 |
if curr:
|
48 |
-
action = [str(curr[
|
49 |
return action
|
50 |
return False
|
51 |
|
@@ -63,4 +63,4 @@ class Floods(MongoDB):
|
|
63 |
self.delete_one(curr)
|
64 |
return True
|
65 |
return False
|
66 |
-
|
|
|
45 |
with INSERTION_LOCK:
|
46 |
curr = self.find_all({"chat_id": chat_id})
|
47 |
if curr:
|
48 |
+
action = [str(curr[0]), str(curr[1]), str(curr[2])]
|
49 |
return action
|
50 |
return False
|
51 |
|
|
|
63 |
self.delete_one(curr)
|
64 |
return True
|
65 |
return False
|
66 |
+
|