Skip to content

Commit

Permalink
Fix inserted_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Jun 2, 2020
1 parent 75f0420 commit 00e24af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsdk/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def store_evidence(self, batch: Batch, *args, **kwargs) -> None:
with self.open_mongo() as database:
collection = database[key]
result = insert_many(collection, docs)
actual = len(result.inserted.ids)
actual = len(result.inserted_ids)
expected = columns.shape[0]
assert actual == expected, self.RESULTSET_ERROR % (
database.name,
Expand Down

0 comments on commit 00e24af

Please sign in to comment.