From b979d77ff1d752f03fa50e31661ee78cfe23e039 Mon Sep 17 00:00:00 2001 From: Archos Date: Sat, 18 Apr 2026 19:31:55 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20odstran=C4=9Bn=20odkaz=20z=20tootu,=20o?= =?UTF-8?q?prava=20form=C3=A1tov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weekly_report.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/weekly_report.py b/weekly_report.py index 8bda8a1..4bb1489 100644 --- a/weekly_report.py +++ b/weekly_report.py @@ -120,7 +120,7 @@ def build_toot(measures_data, tags, top_tooty, date_from, date_to, week_number): if top_tooty: lines = "\n".join( - f"\"{truncate(s['text'], 80)}\" od @{s['acct']} 🔁 {s['reblogs']} ⭐ {s['favourites']}" + f"\"{truncate(s['text'], 80).replace(chr(10), ' ')}\" od @{s['acct']} 🔁 {s['reblogs']} ⭐ {s['favourites']}" for s in top_tooty ) toot_tyden = f"🌟 Tooty týdne:\n{lines}\n\n" @@ -143,9 +143,7 @@ def build_toot(measures_data, tags, top_tooty, date_from, date_to, week_number): f"{hashtags}\n" f"\n" f"{toot_tyden}" - f"💡 Tip týdne: {tip}\n" - f"\n" - f"🔗 fedi.mamutovo.cz" + f"💡 Tip týdne: {tip}" ) def main():