diff --git a/seasearch/index_store/wiki_index.py b/seasearch/index_store/wiki_index.py index c41d9e67..58f5bf06 100644 --- a/seasearch/index_store/wiki_index.py +++ b/seasearch/index_store/wiki_index.py @@ -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):