Export update

This commit is contained in:
retoor 2024-11-24 08:10:21 +01:00
parent ef361b3123
commit 0cdaabfa5d

View File

@ -24,7 +24,7 @@ def dump():
all_content = ""
for user in db.get_users():
text = (
db.get_all_rants_of_user(user).replace("\n", " ").replace(" ", " ").strip()
db.get_all_rants_of_user(user)
)
total_text = ""
if text:
@ -43,7 +43,7 @@ def dump():
f.write(text)
f.write("```")
text = (
db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip()
db.get_all_posts_of_user(user)
)
if text:
total_text += text
@ -62,6 +62,7 @@ def dump():
f.write("```")
all_content += total_text
print("===Mentions of users:", "```")
users = db.get_users()
users.sort()
for user in users: