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():