readme modif

This commit is contained in:
PAPAMICA
2022-05-12 11:22:49 +02:00
parent c30b3c8f4c
commit c1179e2644
2 changed files with 3 additions and 1 deletions

View File

@@ -92,10 +92,12 @@ try:
os.remove("./README.md")
except:
print ("file don't exist")
nb_a = f'<img src="https://img.shields.io/badge/Avaibles:_{nb_a}-%2354B848.svg?style=for-the-badge&logo=cachet&logoColor=white">'
nb_td = f'<img src="https://img.shields.io/badge/Avaibles:_{nb_td}-%23FF8800.svg?style=for-the-badge&logo=vlc&logoColor=white">'
readme_template = open(".github/workflows/Readme-template.md", "rt")
readme_result = open("README.md", "wt")
for line in readme_template:
readme_result.write(line.replace('##SERVICES##', SERVICES).replace('##SERVICES_TODO##', SERVICES_TODO).replace('## List of services availables:', f"## List of services availables: ({nb_a})").replace('## List of services to do:', f"## List of services to do: ({nb_td})"))
readme_result.write(line.replace('##SERVICES##', SERVICES).replace('##SERVICES_TODO##', SERVICES_TODO).replace('##NB_A##', nb_a).replace('##NB_TD##', nb_td))
readme_template.close()
readme_result.close()
print ("\n ✅ README.md generated !")

View File