#5 fixxo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-23 15:31:23 +10:00
parent 53bac66692
commit 7090ab218e

View File

@ -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])]
### оставлять последний пост