This commit is contained in:
parent
7b12f0a38d
commit
da5b2f0096
1 changed files with 5 additions and 4 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue