Skip to content

Commit

Permalink
Exclude wild magix for now
Browse files Browse the repository at this point in the history
  • Loading branch information
acikek committed Jan 2, 2024
1 parent 9007004 commit 312f11a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 6 additions & 6 deletions scripts/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import re

EXCLUDE = [
"cRmOY2t0", # (WeatherSync) Not updated yet
"9pGITjpO" # (Rapscallions and Rockhoppers) Pulls latest from NeoForge ver
"wild-magix", # Not approved yet?
"weathersync", # Not updated yet
"rapscallions-and-rockhoppers" # Pulls latest from NeoForge ver
]

platform_data = json.loads(requests.get("https://platform.modfest.net/submissions").text)
Expand All @@ -16,20 +17,19 @@
submissions = []
for participant_id, participant in participant_data["participants"].items():
for mod in participant["submissions"]:
if mod not in EXCLUDE:
submissions.append(mod)
submissions.append(mod)

input_str = ""
with open('server.toml', 'r') as f:
input_str = f.read()
for mod in platform_data:
if mod["id"] in submissions and not mod["slug"] in input_str:
if mod["id"] in submissions and not mod["slug"] in input_str and not mod["slug"] in EXCLUDE:
run(['mcman', 'i', 'url', mod["download_url"].replace(mod["id"], mod["slug"])])

with open('server.toml', 'r') as f:
input_str = f.read()
for mod in platform_data:
if mod["id"] in submissions:
if mod["id"] in submissions and not mod["slug"] in EXCLUDE:
# Regexes may not be the intended solution, but they sure are a solution
input_str = re.sub(
r"\[\[mods\]\]\ntype = \"modrinth\"\nid = \"%modid%\"\nversion = \".{8}\""
Expand Down
5 changes: 0 additions & 5 deletions server.toml
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,6 @@ type = "modrinth"
id = "the-skys-the-limit"
version = "4eOE93dU"

[[mods]]
type = "modrinth"
id = "wild-magix"
version = "XaEApfFN"

[worlds.modfest-1-20]

[markdown]
Expand Down

0 comments on commit 312f11a

Please sign in to comment.