Sort items in worklog entry route by identifier

This commit is contained in:
Yaro Kasear 2025-07-08 10:28:07 -05:00
parent 1ba0380dde
commit bdf1e8d3b8

View file

@ -32,6 +32,7 @@ def worklog_entry(id):
users = eager_load_user_relationships(user_query).all()
item_query = db.session.query(Inventory)
items = eager_load_inventory_relationships(item_query).all()
items = sorted(items, key=lambda i: i.identifier)
if log:
title = f'Work Log - Entry #{id}'