item.count can be None

This commit is contained in:
Edward Betts 2020-11-01 15:29:03 +00:00
parent cb3a9396de
commit df0138df4a

2
app.py
View file

@ -1072,6 +1072,8 @@ def depicts_lookup():
for alt in q2: for alt in q2:
item = alt.item item = alt.item
if item.count is None:
continue
hit = { hit = {
'label': item.label, 'label': item.label,
'description': item.description, 'description': item.description,