From da5b2f0096501b3be2f61e38a28c90aa7adeec78 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 1 Aug 2024 01:44:13 +0200 Subject: [PATCH] test --- .forgejo/scripts/update-wiki.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/scripts/update-wiki.py b/.forgejo/scripts/update-wiki.py index 2dd41e0..c8d281b 100644 --- a/.forgejo/scripts/update-wiki.py +++ b/.forgejo/scripts/update-wiki.py @@ -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("") if "license" in data: - if data["license"]["url"] != None: - f.write("" + data["name"] + "") + license = data["license"] + if license["url"] != None: + f.write("" + license["name"] + "") else: - f.write(data["name"]) + f.write(license["name"]) else: f.write("Unknown") f.write("\r\n")