diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 13:33:24 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 13:33:24 +0200 |
| commit | 7e4c451c052c9fc33136d184cdedec251f9ef6fd (patch) | |
| tree | 5cef1d2b3f7bb61551dd105974e66b11b81fff98 /app/config.py | |
| parent | 078e792c73f1583433c745695a3b1a9630cedeb3 (diff) | |
| parent | 729203409fb73fdbac19b8af9d647883a5ac96b0 (diff) | |
Merge branch 'develop' into 'main'
Develop
See merge request KaranJayachandra/match_up!14
Diffstat (limited to 'app/config.py')
| -rw-r--r-- | app/config.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/config.py b/app/config.py new file mode 100644 index 0000000..d7509a1 --- /dev/null +++ b/app/config.py @@ -0,0 +1,14 @@ +from os import environ +from os.path import abspath, dirname, join + + +class Config: + SECRET_KEY = environ.get("SECRET_KEY") or None + SQLALCHEMY_DATABASE_URI = "sqlite:///" + join(abspath(dirname(__file__)), "app.db") + COURT_COUNT = 12 + PLAYERS_PER_COURT = 4 + MIN_PLAYER_LEVEL = 1 + MAX_PLAYER_LEVEL = 10 + DEFAULTS = {"---": 1, "RESERVED": 2} + GUEST_COUNT = 4 + GUESTS = {"Beginner": 1, "Novice": 3, "Intermediate": 5}
\ No newline at end of file |
