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"]:
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:
for mod in mods:
if mods[mod] != "":
f.write("- [" + mod + "](" + mods[mod] + ")\r\n")
if mods[mod]["url"] != "":
f.write("- [" + mod + "](" + mods[mod] + ")")
else:
f.write("- " + mod + "\r\n")
f.write("- " + mod)
f.write("(" + mods[mod]["side"] + ")")