Skip to content

Commit

Permalink
Fix bug de remoção de registros
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobatalha committed Sep 6, 2017
1 parent 440bf40 commit 60a65c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion processing/loaddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
Expand Down

0 comments on commit 60a65c6

Please sign in to comment.