diff --git a/backend/innercontext/api/routines.py b/backend/innercontext/api/routines.py index e8ce6e5..0536123 100644 --- a/backend/innercontext/api/routines.py +++ b/backend/innercontext/api/routines.py @@ -266,7 +266,7 @@ def _build_recent_history(session: Session) -> str: def _build_products_context(session: Session, time_filter: Optional[str] = None) -> str: - stmt = select(Product).where(Product.is_tool == False) # noqa: E712 + stmt = select(Product).where(Product.is_tool.is_(False)) products = session.exec(stmt).all() product_ids = [p.id for p in products] inventory_rows = ( @@ -335,9 +335,7 @@ def _build_products_context(session: Session, time_filter: Optional[str] = None) def _build_inventory_context( session: Session, time_filter: Optional[str] = None ) -> str: - products = session.exec( - select(Product).where(Product.is_tool == False) - ).all() # noqa: E712 + products = session.exec(select(Product).where(Product.is_tool.is_(False))).all() product_ids = [p.id for p in products] inventory_rows = ( session.exec(