diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 22:44:14 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 22:44:14 +0200 |
| commit | 218366342a03c9be2075b6d7aec417dd41caf825 (patch) | |
| tree | 0b39d4747090d7ee93394e0a6589e6f2c2dde3ea /app/config.py | |
| parent | ceb264b6bdfed8c51e54deed2b6132fecff3934d (diff) | |
Moved a lot of the code into database queries
Diffstat (limited to 'app/config.py')
| -rw-r--r-- | app/config.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/config.py b/app/config.py index aeb2840..a6a60be 100644 --- a/app/config.py +++ b/app/config.py @@ -1,4 +1,13 @@ from os import environ +from os.path import abspath, dirname, join + class Config: - SECRET_KEY = environ.get("SECRET_KEY") or "you-will-never-guess"
\ No newline at end of file + SECRET_KEY = environ.get("SECRET_KEY") or None + DATABASE_CSV = environ.get("DATABASE_CSV") or None + COURT_COUNT = environ.get("COURT_COUNT") or None + SQLALCHEMY_DATABASE_URI = "sqlite:///" + join(abspath(dirname(__file__)), "app.db") + PLAYERS_PER_COURT = 4 + GUEST_LEVELS = [1, 3, 5] + MIN_PLAYER_LEVEL = 1 + MAX_PLAYER_LEVEL = 10
\ No newline at end of file |
