feat: odstraněn odkaz z tootu, oprava formátování
This commit is contained in:
+2
-4
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user