Spaces:
Running
Running
Captain Ezio
commited on
Commit
·
d390202
1
Parent(s):
68d2ea4
Update flood_db.py
Browse files
Powers/database/flood_db.py
CHANGED
@@ -25,7 +25,7 @@ class Floods(MongoDB):
|
|
25 |
with INSERTION_LOCK:
|
26 |
curr = self.find_one({"chat_id": chat_id})
|
27 |
if curr:
|
28 |
-
if not(limit == int(curr['limit'])
|
29 |
return self.update(
|
30 |
{
|
31 |
"chat_id": chat_id,
|
|
|
25 |
with INSERTION_LOCK:
|
26 |
curr = self.find_one({"chat_id": chat_id})
|
27 |
if curr:
|
28 |
+
if not(limit == int(curr['limit']) and within == int(curr['within']) and action == str(curr['action'])):
|
29 |
return self.update(
|
30 |
{
|
31 |
"chat_id": chat_id,
|