Skip to content

Commit

Permalink
Fix multiline f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsiV11 committed Oct 10, 2024
1 parent ad970e3 commit 77e0d7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vaalilakanabot2024.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@ def parse_fiirumi_posts(context=updater.bot):
_save_data("data/question_posts.json", question_posts)
if has_new_posts:
last_poster = question["last_poster_username"]
_announce_to_channels(
f"""<b>Uusia vastauksia Fiirumilla!</b>\n
{title}\n{BASE_URL}/t/{slug}/{t_id}/{posts_count}\n
Viimeisin vastaaja: {last_poster}"""
announcement = (
f"<b>Uusia vastauksia Fiirumilla!</b>\n"
f"{title}\n{BASE_URL}/t/{slug}/{t_id}/{posts_count}\n"
f"Viimeisin vastaaja: {last_poster}"
)
_announce_to_channels(announcement)


def _announce_to_channels(message):
Expand Down

0 comments on commit 77e0d7a

Please sign in to comment.