Fixed File Not found issue in general.py

This commit is contained in:
ZKWolf 2023-06-16 23:54:20 +02:00
parent bcae59efd5
commit 4319b40d4b

View File

@ -279,7 +279,7 @@ def file_gold_rush(seed, map_name, game_version):
if request.method == "GET":
if os.path.isfile(file_path):
with open(file_name, "r") as files:
with open(file_path, "r") as files:
data = files.read()
encoded_data = base64.b64encode(data)
return encoded_data