diff --git a/inventory/routes/inventory.py b/inventory/routes/inventory.py index 797b9b3..bcc4710 100644 --- a/inventory/routes/inventory.py +++ b/inventory/routes/inventory.py @@ -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: diff --git a/inventory/templates/inventory.html b/inventory/templates/inventory.html index b33b2b0..68a35f8 100644 --- a/inventory/templates/inventory.html +++ b/inventory/templates/inventory.html @@ -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"] ) }} diff --git a/pyproject.toml b/pyproject.toml index 6fed6e1..5b208d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ dependencies = [ "beautifulsoup4", "flask", "flask_sqlalchemy", + "html5lib", "pandas", "pyodbc", "python-dotenv",