Fixing a missing usage of device_type and html5lib.
This commit is contained in:
parent
1aee318853
commit
3ae6f85dc7
3 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -8,6 +8,7 @@ dependencies = [
|
|||
"beautifulsoup4",
|
||||
"flask",
|
||||
"flask_sqlalchemy",
|
||||
"html5lib",
|
||||
"pandas",
|
||||
"pyodbc",
|
||||
"python-dotenv",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue