From 15a1b29b841599dd6ea0c56145ba2fb4edb3d74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 22 Nov 2023 15:34:24 +0100 Subject: [PATCH] Add some comments --- config.py | 3 +++ constants.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config.py b/config.py index 9194931..a0dc0c9 100644 --- a/config.py +++ b/config.py @@ -14,6 +14,9 @@ class DBConfig: def read_db_config() -> DBConfig: + """ + Reads the DB connection parameters from the config file. + """ config_dir = Path(platformdirs.user_config_dir(constants.APP_NAME, ensure_exists=True)) config_path = config_dir / constants.DB_CONFIG_FILE_NAME diff --git a/constants.py b/constants.py index 6bfff2a..b9cb263 100644 --- a/constants.py +++ b/constants.py @@ -1,3 +1,6 @@ +# This file should only contain constants that we use throughout the program, +# i.e. stuff that might be changed at some point, but not changed on user-level + APP_NAME = 'hanabi-league' DB_CONFIG_FILE_NAME = 'config.yaml'