Skip to content

Commit

Permalink
fix: [UI matches extractor] fix empty matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Mar 28, 2024
1 parent 5fce682 commit f37111f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/lib/module_extractor.py
Expand Up @@ -242,8 +242,9 @@ def extract(obj_type, subtype, obj_id, content=None):
extracted = extracted + matches

# SORT By Start Pos
extracted = sorted(extracted, key=itemgetter(0))
extracted = merge_overlap(extracted)
if extracted:
extracted = sorted(extracted, key=itemgetter(0))
extracted = merge_overlap(extracted)

# Save In Cache
if extracted:
Expand Down

0 comments on commit f37111f

Please sign in to comment.