diff --git a/processing/loaddata.py b/processing/loaddata.py index 9b660ed..06c6476 100755 --- a/processing/loaddata.py +++ b/processing/loaddata.py @@ -543,7 +543,7 @@ def differential_mode(index, endpoint, fmt, collection=None, delete=False): # Ids to remove if delete is True: logger.info("Running remove records process.") - remove_ids = ind_ids - art_ids + remove_ids = set([i.split('_')[1] for i in ind_ids]) - set([i.split('_')[1] for i in art_ids]) total_to_remove = len(remove_ids) logger.info("Removing (%d) documents to search index." % total_to_remove) if endpoint == 'article' and total_to_remove > 1000: diff --git a/setup.py b/setup.py index 7a0a803..c87ead2 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( name="publication", - version='1.30.0', + version='1.30.1', description="A SciELO RPC server and API to retrieve publication statistics from the SciELO Network ", author="SciELO", author_email="scielo-dev@googlegroups.com",