From ae9015a92fbfd9bb9b1d2f195a397ba247d1c94e Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Tue, 16 Jan 2024 15:28:47 -0800 Subject: [PATCH] Print if anything is going to be posted or not --- kuow_fetcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kuow_fetcher.py b/kuow_fetcher.py index 861f2da..e7b8f83 100644 --- a/kuow_fetcher.py +++ b/kuow_fetcher.py @@ -129,6 +129,7 @@ with Session(engine) as session: .strip() ) if not article_record.post_id: + print("Posting to Mastodon") mastodon_post_result = mastodon.status_post( status=article_description + "\n" @@ -138,6 +139,8 @@ with Session(engine) as session: visibility="public", ) article_record.post_id = mastodon_post_result["id"] + else: + print("Article has already been posted") except: print("Could not load a description/post this article")