From c418a886ad42265049b6086b32fa412d87dbfa24 Mon Sep 17 00:00:00 2001 From: bth123 Date: Mon, 23 Dec 2024 23:27:10 +0200 Subject: [PATCH] =?UTF-8?q?/file=20fix=20(the=20last=20one,=20i=20hope=20?= =?UTF-8?q?=F0=9F=99=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/minecraft/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/minecraft/file.py b/cogs/minecraft/file.py index d546bb2..52042cb 100644 --- a/cogs/minecraft/file.py +++ b/cogs/minecraft/file.py @@ -118,7 +118,7 @@ async def file(self, ctx, path: str, version: str="latest"): # branch = path.split("/")[0] if version != "latest": - branch = versions_hashes[branch][version] + branch = versions_hashes[branch][version_for_mongo] async with ClientSession(headers=GITHUB_HEADERS) as session: async with session.get(f"https://raw.githubusercontent.com/misode/mcmeta/{branch}/{path}") as response: if response.status != 200: