From c12f3fe13d582376dcf06082cbad58fdac5a7730 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Thu, 1 Aug 2024 01:25:56 +0200 Subject: [PATCH] test --- .forgejo/scripts/update-wiki.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/scripts/update-wiki.py b/.forgejo/scripts/update-wiki.py index 1da201f..7d719de 100644 --- a/.forgejo/scripts/update-wiki.py +++ b/.forgejo/scripts/update-wiki.py @@ -2,18 +2,20 @@ from pip._vendor import requests from pip._vendor import tomli +import json import glob import os -def noop(): - return - mods = dict() count = dict() count["server"] = 0 count["client"] = 0 count["both"] = 0 +cache = dict() +with open("licenses.json") as f: + cache = json.load(f) + for mod in glob.glob("pack/mods/*.toml"): with open(mod, "r") as f: data = tomli.load(f)