[codestyle] move class definition closer to usage

This commit is contained in:
bronsen 2026-02-07 02:44:59 +01:00
parent ddbfec4e54
commit e438015ba8

View file

@ -19,13 +19,6 @@ logging.basicConfig(
logger = logging.getLogger(__name__)
class SammlerApp(App[None]):
async def on_mount(self) -> None:
create_db_and_tables()
try_this()
_ = self.push_screen(AddInventoryScreen())
FAKE_INPUT = """
Ein Teilchen. #Tag03 #tag12 "Dieses Teilchen ist nur zum testen" #tag1 #tag2
""".strip(" \n")
@ -45,6 +38,13 @@ def try_this():
logger.info(f"{db_teilchen=}")
class SammlerApp(App[None]):
async def on_mount(self) -> None:
create_db_and_tables()
try_this()
_ = self.push_screen(AddInventoryScreen())
app = SammlerApp()