Print if anything is going to be posted or not
This commit is contained in:
parent
943af2f10b
commit
ae9015a92f
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue