test
Some checks failed
Update wiki / test (push) Has been cancelled

This commit is contained in:
Ashley Graves 2024-08-01 01:37:37 +02:00
parent 935a90262c
commit 94d8fcf42c
2 changed files with 2 additions and 7 deletions

View file

@ -35,11 +35,9 @@ for mod in glob.glob("pack/mods/*.toml"):
if moddata["name"] in cache:
data = cache[id]
else:
print("Not in cache:" + id)
data = requests.get("https://api.modrinth.com/v2/project/" + id).json()["license"]
cache[id] = data
print(data)
exit
elif "curseforge" in data["update"]:
moddata["url"] = "https://legacy.curseforge.com/projects/" + str(data["update"]["curseforge"]["project-id"])
moddata["site"] = "CurseForge"
@ -100,6 +98,7 @@ with open("wiki/Modlist.md", "w") as f:
with open("wiki/Licenses.md", "w") as f:
for mod in mods:
data = mods[mod]
print(data)
f.write("## " + mod + "\r\n")
f.write("<b>")
if "license" in data:

View file

@ -4,10 +4,6 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "[TEMP] Add cache"
run: |
mkdir cache
- name: "Clone modpack"
uses: actions/checkout@v3
with: