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":
|
case "owner":
|
||||||
return item.owner.identifier
|
return item.owner.identifier
|
||||||
case "type":
|
case "type":
|
||||||
return item.type.description
|
return item.device_type.description
|
||||||
case _:
|
case _:
|
||||||
return getattr(item, col, "")
|
return getattr(item, col, "")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
@ -186,7 +186,7 @@
|
||||||
id='type',
|
id='type',
|
||||||
list=types,
|
list=types,
|
||||||
label='Category',
|
label='Category',
|
||||||
current_item=item.type,
|
current_item=item.device_type,
|
||||||
enabled=item.condition not in ["Removed", "Disposed"]
|
enabled=item.condition not in ["Removed", "Disposed"]
|
||||||
) }}
|
) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,6 +8,7 @@ dependencies = [
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"flask",
|
"flask",
|
||||||
"flask_sqlalchemy",
|
"flask_sqlalchemy",
|
||||||
|
"html5lib",
|
||||||
"pandas",
|
"pandas",
|
||||||
"pyodbc",
|
"pyodbc",
|
||||||
"python-dotenv",
|
"python-dotenv",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue