Skip to content

Commit

Permalink
Fix column names in copy call.
Browse files Browse the repository at this point in the history
  • Loading branch information
pagreene committed Jul 17, 2020
1 parent f40bc66 commit 1cecee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indra_db/reading/read_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,14 @@ def dump_results_to_db(self):
self.stops['dump_statements_db'] = datetime.utcnow()
else:
mesh_term_tuples = set()
for sd in self.result_outputs:
tpl = sd.make_tuple(batch_id)
for mrd in self.result_outputs:
tpl = mrd.make_tuple(batch_id)
mesh_term_tuples.add(tpl)

# Dump mesh_terms to the table
updated = self._db.copy_lazy('mti_ref_annotations_test',
mesh_term_tuples,
DatabaseStatementData.get_cols(),
DatabaseMeshRefData.get_cols(),
commit=False)

gatherer.add('new_mesh_terms', len(mesh_term_tuples) - len(updated))
Expand Down

0 comments on commit 1cecee0

Please sign in to comment.