test
All checks were successful
Update wiki / test (push) Successful in 19s

This commit is contained in:
Ashley Graves 2024-08-01 01:44:13 +02:00
parent 7b12f0a38d
commit da5b2f0096

View file

@ -98,14 +98,15 @@ with open("wiki/Modlist.md", "w") as f:
with open("wiki/Licenses.md", "w") as f: with open("wiki/Licenses.md", "w") as f:
for mod in mods: for mod in mods:
data = mods[mod]["license"] data = mods[mod]
f.write("## " + mod + "\r\n") f.write("## " + mod + "\r\n")
f.write("<b>") f.write("<b>")
if "license" in data: if "license" in data:
if data["license"]["url"] != None: license = data["license"]
f.write("<a href=\"" + data["url"] + "\">" + data["name"] + "") if license["url"] != None:
f.write("<a href=\"" + license["url"] + "\">" + license["name"] + "")
else: else:
f.write(data["name"]) f.write(license["name"])
else: else:
f.write("Unknown") f.write("Unknown")
f.write("</b>\r\n") f.write("</b>\r\n")