Fix a regression introduced in v0.14.0

This commit is contained in:
2024-12-23 12:16:22 +01:00
parent 11515d79ef
commit 7eddd1b52b

View File

@@ -259,7 +259,7 @@ class GetManufacturerItem(View):
manufacturer,
# all returned records must have the same `item_number``;
# just pick it up the first result, otherwise `search`
roster.first.item_number if roster else search,
roster[0].item_number if roster else search,
)
else:
roster = (