Fixed dataset
This commit is contained in:
parent
aef307bbac
commit
5806cffb66
@ -30,15 +30,15 @@ def dump():
|
|||||||
print(
|
print(
|
||||||
"===",
|
"===",
|
||||||
f"All rants written by user(ranter) `{user}` on devRant(developer community).",
|
f"All rants written by user(ranter) `{user}` on devRant(developer community).",
|
||||||
"```"
|
"```",
|
||||||
text
|
text,
|
||||||
"```"
|
"```",
|
||||||
)
|
)
|
||||||
printr(text)
|
printr(text)
|
||||||
with pathlib.Path("export/rants-" + user + ".txt").open("w") as f:
|
with pathlib.Path("export/rants-" + user + ".txt").open("w") as f:
|
||||||
f.write(user,"said:```")
|
f.write(user, "said:```")
|
||||||
f.write(text)
|
f.write(text)
|
||||||
f.write(user,"```")
|
f.write(user, "```")
|
||||||
text = (
|
text = (
|
||||||
db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip()
|
db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip()
|
||||||
)
|
)
|
||||||
@ -49,15 +49,15 @@ def dump():
|
|||||||
"```",
|
"```",
|
||||||
f"All posts written by user(ranter) `{user}` on devRant(developer community): ```.",
|
f"All posts written by user(ranter) `{user}` on devRant(developer community): ```.",
|
||||||
text,
|
text,
|
||||||
"```"
|
"```",
|
||||||
)
|
)
|
||||||
printr(text)
|
printr(text)
|
||||||
with pathlib.Path("export/posts-" + user + ".txt").open("w") as f:
|
with pathlib.Path("export/posts-" + user + ".txt").open("w") as f:
|
||||||
f.write(user,"said:```")
|
f.write(user, "said:```")
|
||||||
f.write(text)
|
f.write(text)
|
||||||
f.write(user,"```")
|
f.write(user, "```")
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user