summaryrefslogtreecommitdiff
path: root/app/config.py
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 22:44:14 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 22:44:14 +0200
commit218366342a03c9be2075b6d7aec417dd41caf825 (patch)
tree0b39d4747090d7ee93394e0a6589e6f2c2dde3ea /app/config.py
parentceb264b6bdfed8c51e54deed2b6132fecff3934d (diff)
Moved a lot of the code into database queries
Diffstat (limited to 'app/config.py')
-rw-r--r--app/config.py11
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