fix: [UI matches extractor] fix empty matches

This commit is contained in:
terrtia 2024-03-28 09:47:53 +01:00
parent 5fce682541
commit f37111fe2b
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -242,8 +242,9 @@ def extract(obj_type, subtype, obj_id, content=None):
extracted = extracted + matches extracted = extracted + matches
# SORT By Start Pos # SORT By Start Pos
extracted = sorted(extracted, key=itemgetter(0)) if extracted:
extracted = merge_overlap(extracted) extracted = sorted(extracted, key=itemgetter(0))
extracted = merge_overlap(extracted)
# Save In Cache # Save In Cache
if extracted: if extracted: