Cleanup 🤷
This commit is contained in:
parent
760c272596
commit
d93e0f940b
3 changed files with 0 additions and 6 deletions
|
|
@ -32,7 +32,4 @@ COPY . .
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
ENV SECRET ""
|
|
||||||
ENV MGMT_KEY ""
|
|
||||||
|
|
||||||
CMD ["python", "src/__main__.py"]
|
CMD ["python", "src/__main__.py"]
|
||||||
|
|
@ -77,7 +77,6 @@ def get_loader_info(game_versions: List[str]) -> Tuple[List[str], List[str]]:
|
||||||
Args: game_versions (List[str]): the list of game versions
|
Args: game_versions (List[str]): the list of game versions
|
||||||
Returns: (Tuple[List[str], List[str]]): the minecraft versions and the loader(s), respectively
|
Returns: (Tuple[List[str], List[str]]): the minecraft versions and the loader(s), respectively
|
||||||
"""
|
"""
|
||||||
print(game_versions)
|
|
||||||
mc_versions = list(
|
mc_versions = list(
|
||||||
filter(lambda x: re.match(r"^1.[0-9].*.[0-9]?", x), game_versions)
|
filter(lambda x: re.match(r"^1.[0-9].*.[0-9]?", x), game_versions)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,6 @@ class FastProvider(MgmtApiLogger):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
print(payload)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
"https://api.modrinth.com/v2/version",
|
"https://api.modrinth.com/v2/version",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue