_delete_all_posts() before creating a new post

master
Aevann 2023-09-27 01:19:41 +03:00
parent 2981701941
commit 620cb49ddd
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ def get_name():
return get_file().split('.')[0]
def _create_post(title, body, pin_hours):
_delete_all_posts()
title += f': {get_name()}'
title_html = filter_emojis_only(title)