Update readme_generator.py
Browse files- readme_generator.py +0 -1
readme_generator.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
def generate_readme(repo_info, content, license_type=None):
|
| 2 |
with open("readme.md", "w", encoding="utf-8") as f:
|
| 3 |
-
f.write(f"# {repo_info['name']}\n\n")
|
| 4 |
f.write(content)
|
| 5 |
if license_type:
|
| 6 |
f.write(f"\n\n## License\nThis project is licensed under the **{license_type}** License.")
|
|
|
|
| 1 |
def generate_readme(repo_info, content, license_type=None):
|
| 2 |
with open("readme.md", "w", encoding="utf-8") as f:
|
|
|
|
| 3 |
f.write(content)
|
| 4 |
if license_type:
|
| 5 |
f.write(f"\n\n## License\nThis project is licensed under the **{license_type}** License.")
|