1
0
Fork 0

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 2e500bde08
commit de40cd2c64

View file

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