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 json
import os
import hmac
import shlex
import asyncio
import tempfile
@ -57,10 +56,12 @@ 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"]:
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