From dc53d8a8b18b3a9a86eb420f4b24009f9da04900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Thu, 30 Mar 2023 18:00:23 +0200 Subject: [PATCH] Fix Typos --- backend/helpers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/helpers.py b/backend/helpers.py index 0fc7e22..d67d5d2 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -44,8 +44,7 @@ def check_config_exists(): def load_version(app: Flask): if os.environ.get("SOURCE_VERSION"): - app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[ - 0:7] # type: ignore + app.config['VERSION'] = os.environ.get("SOURCE_VERSION")[0:7] # type: ignore # noqa: E501 elif os.path.isfile(".version"): with open('.version', 'r') as file: data = file.read().replace('\n', '') @@ -86,7 +85,7 @@ def load_dbconfig(app: Flask): def setup_config(app: Flask): if check_config_exists() == False: - print("No config found, creating new config"): + print("No config found, creating new config") initial_username = os.environ.get("INITIAL_USERNAME") initial_password = os.environ.get("INITIAL_PASSWORD") if initial_username is None: