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

This commit is contained in:
Ashley Graves 2024-07-27 15:38:21 +02:00
parent 3d79f49000
commit 4efd46bb97

View file

@ -21,11 +21,18 @@ for mod in glob.glob("pack/mods/*.toml"):
elif "curseforge" in data["update"]: elif "curseforge" in data["update"]:
url = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"]) url = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
mods[data["name"]] = url moddata = dict()
moddata["side"] = data["side"]
moddata["url"] = url
mods[data["name"]] = moddata
with open("wiki/Modlist.md", "w") as f: with open("wiki/Modlist.md", "w") as f:
for mod in mods: for mod in mods:
if mods[mod] != "": if mods[mod]["url"] != "":
f.write("- [" + mod + "](" + mods[mod] + ")\r\n") f.write("- [" + mod + "](" + mods[mod] + ")")
else: else:
f.write("- " + mod + "\r\n") f.write("- " + mod)
f.write("(" + mods[mod]["side"] + ")")