From 7acc00771b1b275ff1289eeb856f376bf6bdaa02 Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 20 Apr 2025 21:17:35 +0200 Subject: [PATCH] Linux bug hotfix Setting upload folder to a string with \ as separators caused issues on Linux based OS. --- application/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/__init__.py b/application/__init__.py index 67c3339..04e137f 100644 --- a/application/__init__.py +++ b/application/__init__.py @@ -9,7 +9,7 @@ app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///services.sqlite" app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False # Wat is dit? app.config["SECRET_KEY"] = "bvjchsygvduycgsyugc" # Andere secret key -app.config["UPLOAD_FOLDER"] = r"application\static\icons" +app.config["UPLOAD_FOLDER"] = os.path.join("application", "static", "icons") # Ensure the upload folder exists os.makedirs(app.config["UPLOAD_FOLDER"], exist_ok=True) # type: ignore