feat: improved registration signup flow (#1188)

refactored signup flow for entire registration process. Utilized seed data option for optional seeding of Foods, Units, and Labels. Localized registration page.
This commit is contained in:
Hayden
2022-05-06 11:18:06 -08:00
committed by GitHub
parent 6ee9a31c92
commit 7e4da3e5a4
23 changed files with 1056 additions and 316 deletions

View File

@@ -159,7 +159,7 @@ class RepositoryGeneric(Generic[T, D]):
if any_case:
search_attr = getattr(self.sql_model, key)
q = q.filter(func.lower(search_attr) == key.lower()).filter_by(**self._filter_builder())
q = q.filter(func.lower(search_attr) == str(value).lower()).filter_by(**self._filter_builder())
else:
q = self.session.query(self.sql_model).filter_by(**self._filter_builder(**{key: value}))