Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry committed Aug 10, 2021
2 parents 1beecee + 853c6b1 commit 3144aa3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions biothings/hub/dataindex/indexer_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,9 @@ def index(self):
def merge(self):
clients = self._get_clients()

upd_cnt = 0
new_cnt = 0

docs_old = {}
docs_new = {}

upd_cnt, docs_old = 0, {}
new_cnt, docs_new = 0, {}

# populate docs_old
for doc in clients.es.mget(self.ids):
docs_old[doc['_id']] = doc
Expand Down

0 comments on commit 3144aa3

Please sign in to comment.