app: we don't care about "number" for now
This commit is contained in:
parent
e5bb663ee8
commit
48bb3055f3
3 changed files with 3 additions and 6 deletions
|
|
@ -23,7 +23,7 @@ logging.basicConfig(
|
|||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
TEILCHEN_DATA_HEADER = "pk Name Description Number Tags".split()
|
||||
TEILCHEN_DATA_HEADER = "pk Name Description Tags".split()
|
||||
|
||||
|
||||
class SammlerApp(App):
|
||||
|
|
@ -73,7 +73,7 @@ class SearchBar(Static):
|
|||
|
||||
teilchen = await add_to_database(tc, engine)
|
||||
self.screen.query_one(DataTable).add_row(
|
||||
teilchen.id, teilchen.name, teilchen.description, teilchen.number, teilchen.tags
|
||||
teilchen.id, teilchen.name, teilchen.description, teilchen.tags
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -91,9 +91,7 @@ async def load_initial_data(engine) -> Sequence[Teilchen]:
|
|||
List of Teilchen, potentially empty
|
||||
"""
|
||||
with Session(engine) as session:
|
||||
statement = select(
|
||||
Teilchen.id, Teilchen.name, Teilchen.description, Teilchen.number, Teilchen.tags
|
||||
) # ty:ignore[no-matching-overload]
|
||||
statement = select(Teilchen.id, Teilchen.name, Teilchen.description, Teilchen.tags) # ty:ignore[no-matching-overload]
|
||||
all_teilchen = session.exec(statement).all()
|
||||
|
||||
logger.debug("Loading initial data: found %s records", len(all_teilchen))
|
||||
|
|
|
|||
1
tests.py
1
tests.py
|
|
@ -86,7 +86,6 @@ def TC(**kwargs) -> TeilchenCreate | None:
|
|||
("a. #", TC(name="a", description="", tags="", text="a. #")),
|
||||
("a. ##", TC(name="a", description="", tags="", text="a. ##")),
|
||||
("a. #tag with spaces", TC(name="a", tags="#tag", text="a. #tag with spaces")),
|
||||
# do we care about "number"?
|
||||
],
|
||||
)
|
||||
async def test_maketeilcheninput_can_create_desired_teilchen(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue