1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

refactor(readme-generator/regen_readme_in_batch): add main and remove unused import

This commit is contained in:
Laurent Peuch 2024-03-29 06:46:40 +01:00
parent 9ae92a3dbc
commit 7e9c3db738

View file

@ -1,7 +1,6 @@
import time
import json
import os
import hmac
import shlex
import asyncio
import tempfile
@ -57,15 +56,17 @@ async def regen_readme(repository, branch):
print("Updated {repo}")
skip = True
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
for app, infos in apps.items():
if not "github.com" in infos["git"]["url"]:
continue
if app == "dendrite":
skip = False
if skip:
continue
print(app)
time.sleep(2)
asyncio.run(regen_readme(infos["git"]["url"].replace("https://github.com/", ""), infos["git"]["branch"]))
if __name__ == '__main__':
skip = True
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
for app, infos in apps.items():
if "github.com" not in infos["git"]["url"]:
continue
if app == "dendrite":
skip = False
if skip:
continue
print(app)
time.sleep(2)
asyncio.run(regen_readme(infos["git"]["url"].replace("https://github.com/", ""), infos["git"]["branch"]))