test
Some checks failed
Update wiki / test (push) Failing after 18s

This commit is contained in:
Ashley Graves 2024-08-01 01:39:55 +02:00
parent e4c30de3d2
commit 4a41b93fcf

View file

@ -33,10 +33,11 @@ for mod in glob.glob("pack/mods/*.toml"):
moddata["url"] = "https://modrinth.com/mod/" + id
moddata["site"] = "Modrinth"
if moddata["name"] in cache:
if id in cache:
print("Using cached value: " + data["name"])
data = cache[id]
else:
print("Not in cache:" + id)
print("Not in cache: " + id + " - " + data["name"])
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
cache[id] = data
elif "curseforge" in data["update"]: