From 4319b40d4b005a2ffa345e6dbf23d68d94c47e67 Mon Sep 17 00:00:00 2001 From: ZKWolf Date: Fri, 16 Jun 2023 23:54:20 +0200 Subject: [PATCH] Fixed File Not found issue in general.py --- src/endpoints/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/general.py b/src/endpoints/general.py index 926e2d6..812b1eb 100644 --- a/src/endpoints/general.py +++ b/src/endpoints/general.py @@ -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