fix type annotation for owners
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-05 06:49:55 +01:00
parent e00d5eb025
commit f55825fa05

View File

@@ -70,8 +70,8 @@ class NewMedicineState(rx.State):
async with self:
self.load_last_scan()
@rx.var
def owners(self):
@rx.cached_var
def owners(self) -> List[str]:
with rx.session() as session:
statement = select(Owner)
results = session.exec(statement)