Fixing a missing usage of device_type and html5lib.

This commit is contained in:
Yaro Kasear 2025-07-29 08:39:50 -05:00
parent 1aee318853
commit 3ae6f85dc7
3 changed files with 3 additions and 2 deletions

View file

@ -224,7 +224,7 @@ def get_inventory_csv():
case "owner":
return item.owner.identifier
case "type":
return item.type.description
return item.device_type.description
case _:
return getattr(item, col, "")
except Exception:

View file

@ -186,7 +186,7 @@
id='type',
list=types,
label='Category',
current_item=item.type,
current_item=item.device_type,
enabled=item.condition not in ["Removed", "Disposed"]
) }}
</div>

View file

@ -8,6 +8,7 @@ dependencies = [
"beautifulsoup4",
"flask",
"flask_sqlalchemy",
"html5lib",
"pandas",
"pyodbc",
"python-dotenv",