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

This commit is contained in:
Ashley Graves 2024-07-27 14:55:11 +02:00
parent f09ae99eca
commit a5fdf9b7fb

View file

@ -16,17 +16,10 @@ for mod in glob.glob("pack/mods/*.toml"):
# there has to be a better way to do this
try:
print("MR: " + data.update.modrinth["mod-id"])
url = "https://modrinth.com/mod/" + data.update.modrinth["mod-id"]
except:
noop()
try:
print("CF: " + data.update.curseforge["mod-id"])
url = "http://dev.bukkit.org/bukkit-plugins/" + data.update.curseforge["mod-id"]
except:
noop()
if "modrinth" in data["update"]:
url = "https://modrinth.com/mod/" + data["update"]["modrinth"]["mod-id"]
elif "curseforge" in data["update"]:
url = "http://dev.bukkit.org/bukkit-plugins/" + data["update"]["curseforge"]["mod-id"]
print(data)
mods[data["name"]] = url