Remove unused import and add type ignore comment for inventory query filter
This commit is contained in:
parent
b3fb7e9fd8
commit
31913eab47
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
from flask import Blueprint, render_template, url_for, request, redirect, flash, jsonify
|
||||
from flask import current_app as app
|
||||
from .models import Brand, Item, Inventory, RoomFunction, User, WorkLog, Room, Area
|
||||
from sqlalchemy import or_, delete
|
||||
from sqlalchemy import or_
|
||||
from sqlalchemy.orm import aliased
|
||||
from . import db
|
||||
from .utils.load import eager_load_user_relationships, eager_load_inventory_relationships, eager_load_room_relationships, eager_load_worklog_relationships, chunk_list, add_named_entities
|
||||
|
@ -297,7 +297,7 @@ def user(id):
|
|||
rooms = eager_load_room_relationships(rooms_query).all()
|
||||
inventory_query = (
|
||||
eager_load_inventory_relationships(db.session.query(Inventory))
|
||||
.filter(Inventory.owner_id == id)
|
||||
.filter(Inventory.owner_id == id) # type: ignore
|
||||
.filter(Inventory.condition.in_(ACTIVE_STATUSES))
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue