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

This commit is contained in:
Ashley Graves 2024-08-01 01:42:39 +02:00
parent 228ec7e024
commit c3c3b8a209

View file

@ -38,9 +38,8 @@ for mod in glob.glob("pack/mods/*.toml"):
data = cache[id] data = cache[id]
else: else:
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"] data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
license["name"] = data["name"] cache[id] = data
license["url"] = data["url"] moddata["license"] = data
cache[id] = license
elif "curseforge" in data["update"]: elif "curseforge" in data["update"]:
moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"]) moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
moddata["site"] = "CurseForge" moddata["site"] = "CurseForge"