codestyle: explain why we instantiate the app at module level

This commit is contained in:
bronsen 2026-02-22 11:04:05 +01:00
parent 2de1b3ce0e
commit c7a4c7a411

View file

@ -20,9 +20,10 @@ logger = logging.getLogger(__name__)
class SammlerApp(App): class SammlerApp(App):
async def on_mount(self) -> None: async def on_mount(self) -> None:
create_db_and_tables() create_db_and_tables()
_ = self.push_screen(AddInventoryScreen()) self.push_screen(AddInventoryScreen())
# so we can import it without running it
app = SammlerApp() app = SammlerApp()