parent
3d79f49000
commit
4efd46bb97
1 changed files with 11 additions and 4 deletions
|
@ -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"] + ")")
|
||||||
|
|
Loading…
Reference in a new issue