This commit is contained in:
parent
53bac66692
commit
7090ab218e
@ -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])]
|
||||
### оставлять последний пост
|
||||
|
Loading…
Reference in New Issue
Block a user