summaryrefslogtreecommitdiff
path: root/model.py
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-18 16:58:03 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-18 16:58:03 +0200
commit1aa425e1d7b5818d5677530512b4e0a6f525580e (patch)
treec7f9f30da2c0b68736b9c5b9326df8cfd8e02543 /model.py
parent663e797209b11d7d234ca90da82fb809ac688845 (diff)
Made the visuals look good for laptop
Diffstat (limited to 'model.py')
-rw-r--r--model.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/model.py b/model.py
index f768d0f..c652ce8 100644
--- a/model.py
+++ b/model.py
@@ -1,3 +1,4 @@
+from os import getenv
from math import floor
from csv import reader
from typing import Tuple
@@ -30,7 +31,7 @@ class Game:
@dataclass
class CourtList:
- total: int
+ total: int = int(getenv("COURTS"))
def __post_init__(self) -> None:
self.courts = {i + 1: True for i in range(self.total)}
@@ -54,7 +55,7 @@ class CourtList:
@dataclass
class PlayerList:
- location: str
+ location: str = getenv("DATABASE")
guests: int = 0
def __post_init__(self) -> None: