Print if anything is going to be posted or not

This commit is contained in:
Liam Steckler 2024-01-16 15:28:47 -08:00
parent 943af2f10b
commit ae9015a92f

View file

@ -129,6 +129,7 @@ with Session(engine) as session:
.strip() .strip()
) )
if not article_record.post_id: if not article_record.post_id:
print("Posting to Mastodon")
mastodon_post_result = mastodon.status_post( mastodon_post_result = mastodon.status_post(
status=article_description status=article_description
+ "\n" + "\n"
@ -138,6 +139,8 @@ with Session(engine) as session:
visibility="public", visibility="public",
) )
article_record.post_id = mastodon_post_result["id"] article_record.post_id = mastodon_post_result["id"]
else:
print("Article has already been posted")
except: except:
print("Could not load a description/post this article") print("Could not load a description/post this article")