mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-10 23:42:26 +05:30
Update main.py (#15)
This commit is contained in:
parent
dc31a18089
commit
3b32cb1909
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user