[models] move data loader to models module

This commit is contained in:
bronsen 2026-02-07 02:52:13 +01:00
parent d2b6e11fe4
commit 6a4334263a
2 changed files with 18 additions and 22 deletions

View file

@ -55,3 +55,14 @@ async def make_teilchen_input(text: str) -> TeilchenCreate | None:
tags=" ".join(natsorted(tags)),
text=text,
)
async def load_initial_data() -> list[TeilchenDatum]:
return [
(0, "Name0", "Description0", "9000", "#tag0 #tag00 #tag000"),
(1, "Name1", "Description1", "9001", "#tag1 #tag11 #tag111"),
(2, "Name2", "Description2", "9002", "#tag2 #tag22 #tag222"),
(3, "Name3", "Description3", "9003", "#tag3 #tag33 #tag333"),
(4, "Name4", "Description4", "9004", "#tag4 #tag44 #tag444"),
(5, "Name5", "Description5", "9005", "#tag5 #tag55 #tag555"),
]