Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
5b68064
1
Parent(s):
8d76755
Update flood_db.py
Browse files
Powers/database/flood_db.py
CHANGED
@@ -26,7 +26,7 @@ class Floods(MongoDB):
|
|
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 |
-
if limit != int(curr['limit'])
|
30 |
return self.update(
|
31 |
{"chat_id": chat_id,"within": within,"action": action},
|
32 |
{"limit": limit}
|
|
|
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 |
+
if limit != int(curr['limit']):
|
30 |
return self.update(
|
31 |
{"chat_id": chat_id,"within": within,"action": action},
|
32 |
{"limit": limit}
|