Sort items in worklog entry route by identifier
This commit is contained in:
parent
1ba0380dde
commit
bdf1e8d3b8
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ def worklog_entry(id):
|
||||||
users = eager_load_user_relationships(user_query).all()
|
users = eager_load_user_relationships(user_query).all()
|
||||||
item_query = db.session.query(Inventory)
|
item_query = db.session.query(Inventory)
|
||||||
items = eager_load_inventory_relationships(item_query).all()
|
items = eager_load_inventory_relationships(item_query).all()
|
||||||
|
items = sorted(items, key=lambda i: i.identifier)
|
||||||
|
|
||||||
if log:
|
if log:
|
||||||
title = f'Work Log - Entry #{id}'
|
title = f'Work Log - Entry #{id}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue