From 5806cffb6678db1ac09efe2af3ba9355084c16b3 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 24 Nov 2024 07:15:17 +0100 Subject: [PATCH] Fixed dataset --- src/drstats/dataset.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/drstats/dataset.py b/src/drstats/dataset.py index c1ded4a..a6bdafe 100644 --- a/src/drstats/dataset.py +++ b/src/drstats/dataset.py @@ -30,15 +30,15 @@ def dump(): print( "===", f"All rants written by user(ranter) `{user}` on devRant(developer community).", - "```" - text - "```" + "```", + text, + "```", ) printr(text) with pathlib.Path("export/rants-" + user + ".txt").open("w") as f: - f.write(user,"said:```") + f.write(user, "said:```") f.write(text) - f.write(user,"```") + f.write(user, "```") text = ( 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): ```.", text, - "```" + "```", ) printr(text) with pathlib.Path("export/posts-" + user + ".txt").open("w") as f: - f.write(user,"said:```") + f.write(user, "said:```") f.write(text) - f.write(user,"```") + f.write(user, "```") all_content += total_text - print("===Mentions of users:","```") + print("===Mentions of users:", "```") users = db.get_users() users.sort() for user in users: @@ -65,4 +65,4 @@ def dump(): line = f"{user} is {all_content.count(mention_text)} times mentioned on devRant(developer comminity)." printr(line) print(line) - print("```") \ No newline at end of file + print("```")