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