Skip to content

Commit

Permalink
chore: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
cir9no committed Jan 2, 2025
1 parent 1c7a4c8 commit 80eef73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions seasearch/index_store/wiki_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ def get_updated_title_uuids(self, old_conf, new_conf, excluded_uuids=None):
doc_uuids = set()
for new_id, new_page in new_pages.items():
if new_id not in old_pages or new_page['name'] != old_pages[new_id]['name']:
doc_uuids.add(new_page['docUuid'])

if excluded_uuids:
doc_uuids.difference_update(excluded_uuids)
if new_page['docUuid'] not in excluded_uuids:
doc_uuids.add(new_page['docUuid'])
return doc_uuids

def get_uuid_path_mapping(self, config):
Expand Down

0 comments on commit 80eef73

Please sign in to comment.