From 7014b4ea10c682c7d9577951e2478c6e799031a6 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 11 Feb 2023 12:27:23 +0100 Subject: [PATCH] Add link to schedule. --- pyconfr-to-mastodon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyconfr-to-mastodon.py b/pyconfr-to-mastodon.py index 62f5105..8cc7ac1 100644 --- a/pyconfr-to-mastodon.py +++ b/pyconfr-to-mastodon.py @@ -133,9 +133,12 @@ def parse_args(): def toot_for(talk, ahead_days=0): """Redact a toot for a given talk.""" if ahead_days: - return f"Dans {ahead_days} jours exactement, salle {talk.room} : « {talk.title} » présenté par {talk.author}" + msg = f"Dans {ahead_days} jours exactement, salle {talk.room} : « {talk.title} » présenté par {talk.author}" else: - return f"Salle {talk.room} : « {talk.title} » présenté par {talk.author}, c'est maintenant !" + msg = f"Salle {talk.room} : « {talk.title} » présenté par {talk.author}, c'est maintenant !" + + msg += "\n\nLe programme : https://www.pycon.fr/2023/fr/schedule.html" + return msg def live_toot(talks, mastodon: Mastodon, ahead_days=0):