[codestyle] move class definition closer to usage
This commit is contained in:
parent
ddbfec4e54
commit
e438015ba8
1 changed files with 7 additions and 7 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue