diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-18 16:58:03 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-18 16:58:03 +0200 |
| commit | 1aa425e1d7b5818d5677530512b4e0a6f525580e (patch) | |
| tree | c7f9f30da2c0b68736b9c5b9326df8cfd8e02543 /model.py | |
| parent | 663e797209b11d7d234ca90da82fb809ac688845 (diff) | |
Made the visuals look good for laptop
Diffstat (limited to 'model.py')
| -rw-r--r-- | model.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |
