From 4a41b93fcfdd5d6f39342545827f684f58c41902 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 1 Aug 2024 01:39:55 +0200 Subject: [PATCH] test --- .forgejo/scripts/update-wiki.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/scripts/update-wiki.py b/.forgejo/scripts/update-wiki.py index ec0a8f6..418bb73 100644 --- a/.forgejo/scripts/update-wiki.py +++ b/.forgejo/scripts/update-wiki.py @@ -33,10 +33,11 @@ for mod in glob.glob("pack/mods/*.toml"): moddata["url"] = "https://modrinth.com/mod/" + id moddata["site"] = "Modrinth" - if moddata["name"] in cache: + if id in cache: + print("Using cached value: " + data["name"]) data = cache[id] else: - print("Not in cache:" + id) + print("Not in cache: " + id + " - " + data["name"]) data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"] cache[id] = data elif "curseforge" in data["update"]: