From 7090ab218e6c2872576ddb7233d5e43973bb3da7 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:31:23 +1000 Subject: [PATCH] #5 fixxo --- db_logic/postcleaner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/postcleaner.py b/db_logic/postcleaner.py index 4ddc9a5..a4f0654 100644 --- a/db_logic/postcleaner.py +++ b/db_logic/postcleaner.py @@ -37,7 +37,7 @@ def get_posts_to_be_removed(chat_id, type=None, max_id=None): posts_ret.append(p) if max_id: - posts_ret = [ p for p in posts_ret if p['msg_id'] != max_id)] + posts_ret = [ p for p in posts_ret if p['msg_id'] != max_id] else: posts_ret = [ p for p in posts_ret if p['msg_id'] != max([pp['msg_id'] for pp in posts_ret])] ### оставлять последний пост