mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 06:26:14 +00:00
fix: [module extrsctor] fix invalid object meta
This commit is contained in:
parent
e0a8f4cc37
commit
02aa9a983b
2 changed files with 7 additions and 3 deletions
|
@ -90,7 +90,7 @@ def get_obj_queued():
|
|||
return ['barcode', 'item', 'image', 'message', 'ocr', 'qrcode'] # screenshot ???
|
||||
|
||||
def get_objects_tracked():
|
||||
return ['barcode', 'decoded', 'item', 'pgp', 'message', 'ocr', 'qrcode', 'title']
|
||||
return ['barcode', 'decoded', 'item', 'message', 'ocr', 'pgp', 'qrcode', 'title']
|
||||
|
||||
def get_objects_retro_hunted():
|
||||
return ['decoded', 'item', 'message', 'ocr']
|
||||
|
|
|
@ -302,8 +302,12 @@ def get_extracted_by_match(extracted):
|
|||
obj_id = row_id[0]
|
||||
matches[str_obj]['subtype'] = subtype
|
||||
matches[str_obj]['id'] = obj_id
|
||||
matches[str_obj]['icon'] = ail_objects.get_object_svg(ob_type, subtype, obj_id)
|
||||
matches[str_obj]['link'] = ail_objects.get_object_link(ob_type, subtype, obj_id)
|
||||
try:
|
||||
matches[str_obj]['icon'] = ail_objects.get_object_svg(ob_type, subtype, obj_id)
|
||||
matches[str_obj]['link'] = ail_objects.get_object_link(ob_type, subtype, obj_id)
|
||||
except TypeError:
|
||||
matches[str_obj]['icon'] = {'style': 'fas', 'icon': '\uf00d', 'color': 'red', 'radius': 5}
|
||||
matches[str_obj]['link'] = ''
|
||||
|
||||
matches[str_obj]['matches'] = []
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue