Updated python packages
This commit is contained in:
@@ -29,7 +29,7 @@ async def create(
|
||||
color_hex: Optional[str] = None,
|
||||
) -> models.Filament:
|
||||
"""Add a new filament to the database."""
|
||||
vendor_item: Optional[models.Vendor] = None # noqa: FA100
|
||||
vendor_item: Optional[models.Vendor] = None
|
||||
if vendor_id is not None:
|
||||
vendor_item = await vendor.get_by_id(db, vendor_id)
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ async def find(
|
||||
# Since the archived field is nullable, and default is false, we need to check for both false or null
|
||||
stmt = stmt.where(
|
||||
sqlalchemy.or_(
|
||||
models.Spool.archived.is_(False), # noqa: FBT003
|
||||
models.Spool.archived.is_(False),
|
||||
models.Spool.archived.is_(None),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user