diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-16 21:42:22 +0000 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-16 21:42:22 +0000 |
| commit | 7643486d7122b322a052bfca8ec83326c48053d0 (patch) | |
| tree | 096d2b629818f79674d22a14eff124f082449b6e /src/match_up/__init__.py | |
| parent | 9ef7d95c7010351078a929f5144f5098d4142cd0 (diff) | |
| parent | 36cc7d82a55cbd8167e1f52637dd1938497dd8cc (diff) | |
Merge branch 'develop' into 'main'
Full functionality available
See merge request KaranJayachandra/match_up!3
Diffstat (limited to 'src/match_up/__init__.py')
| -rw-r--r-- | src/match_up/__init__.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/match_up/__init__.py b/src/match_up/__init__.py deleted file mode 100644 index 04c2f12..0000000 --- a/src/match_up/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -from dash import Dash -from pathlib import PurePath -from match_up.model import PlaySession -from match_up.view import MainLayout -from match_up.tests import ( - TEST_DATABASE_LOCATION, -) -from dash_bootstrap_components.themes import ZEPHYR - -DATABASE_LOCATION = "storage.json" - - -class Application: - def __init__(self, debug=False): - self._debug = debug - if debug: - database_location = TEST_DATABASE_LOCATION - else: - database_location = DATABASE_LOCATION - self._session = PlaySession(PurePath(database_location)) - self._dashboard = Dash("Match Up!", external_stylesheets=[ZEPHYR]) - self._layout = MainLayout( - self._session.data.get_players(), self._session.get_matches() - ) - self._dashboard.layout = self._layout.get() - - def run(self): - self._dashboard.run(debug=self._debug) - - -def main(): - a = Application(debug=True) - a.run() |
