From 4a93ae50f4523e374575404cc6b85fd73de5fb71 Mon Sep 17 00:00:00 2001 From: Archos Date: Sat, 18 Apr 2026 19:44:33 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20oprava=20form=C3=A1tov=C3=A1n=C3=AD=20t?= =?UTF-8?q?oot=C5=AF=20t=C3=BDdne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weekly_report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weekly_report.py b/weekly_report.py index 4bb1489..fa607c2 100644 --- a/weekly_report.py +++ b/weekly_report.py @@ -119,11 +119,11 @@ def build_toot(measures_data, tags, top_tooty, date_from, date_to, week_number): tip = TIPS[week_number % len(TIPS)] if top_tooty: - lines = "\n".join( - f"\"{truncate(s['text'], 80).replace(chr(10), ' ')}\" od @{s['acct']} 🔁 {s['reblogs']} ⭐ {s['favourites']}" + blocks = "\n\n".join( + f"👤 @{s['acct']}\n\"{truncate(s['text'], 80).replace(chr(10), ' ')}\"\n🔁 {s['reblogs']} ⭐ {s['favourites']}" for s in top_tooty ) - toot_tyden = f"🌟 Tooty týdne:\n{lines}\n\n" + toot_tyden = f"🌟 Tooty týdne:\n\n{blocks}\n\n" else: toot_tyden = ""