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:
|
||||
for mod in mods:
|
||||
data = mods[mod]["license"]
|
||||
data = mods[mod]
|
||||
f.write("## " + mod + "\r\n")
|
||||
f.write("<b>")
|
||||
if "license" in data:
|
||||
if data["license"]["url"] != None:
|
||||
f.write("<a href=\"" + data["url"] + "\">" + data["name"] + "")
|
||||
license = data["license"]
|
||||
if license["url"] != None:
|
||||
f.write("<a href=\"" + license["url"] + "\">" + license["name"] + "")
|
||||
else:
|
||||
f.write(data["name"])
|
||||
f.write(license["name"])
|
||||
else:
|
||||
f.write("Unknown")
|
||||
f.write("</b>\r\n")
|
||||
|
|
Loading…
Reference in a new issue