Skip to content

Commit

Permalink
/file fix (the last one, i hope πŸ™)
Browse files Browse the repository at this point in the history
  • Loading branch information
bth123 committed Dec 23, 2024
1 parent 0b6c369 commit c418a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/minecraft/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c418a88

Please sign in to comment.