feat: odstraněn odkaz z tootu, oprava formátování

This commit is contained in:
2026-04-18 19:31:55 +02:00
parent cc805d0514
commit b979d77ff1
+2 -4
View File
@@ -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():