From 3b32cb1909395e75f4f80e3fe04dc260dc0c2de6 Mon Sep 17 00:00:00 2001 From: LinearArray <158163992+LinearArray@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:35:01 +0530 Subject: [PATCH] Update main.py (#15) --- ama-summarizer/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ama-summarizer/main.py b/ama-summarizer/main.py index 2285ca4..7145a90 100644 --- a/ama-summarizer/main.py +++ b/ama-summarizer/main.py @@ -51,14 +51,14 @@ def main(): if question_text != "[deleted]": question_link = "https://reddit.com" + comment.parent().permalink markdown_file += ( - f"{question_number}. [{question_text}]({question_link})\n" - ) + f"{question_number}. [{question_text}]({question_link})\n\n" + ) # Add an extra newline after each question question_number += 1 with open("questions.md", "w", encoding="utf-8") as file: file.write(markdown_file) - print(f"{question_number} questions generated successfully.") + print(f"{question_number - 1} questions generated successfully.") if __name__ == "__main__":