mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [UI matches extractor] fix empty matches
This commit is contained in:
parent
5fce682541
commit
f37111fe2b
1 changed files with 3 additions and 2 deletions
|
@ -242,6 +242,7 @@ def extract(obj_type, subtype, obj_id, content=None):
|
||||||
extracted = extracted + matches
|
extracted = extracted + matches
|
||||||
|
|
||||||
# SORT By Start Pos
|
# SORT By Start Pos
|
||||||
|
if extracted:
|
||||||
extracted = sorted(extracted, key=itemgetter(0))
|
extracted = sorted(extracted, key=itemgetter(0))
|
||||||
extracted = merge_overlap(extracted)
|
extracted = merge_overlap(extracted)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue