Skip to content

Commit

Permalink
Fix mongo batch record.end update
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed May 4, 2020
1 parent 2cd64e3 commit aa0bc1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dsdk/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def open_batch(

yield batch

key, doc = batch.as_update_doc()
with self.open_mongo() as database:
update_one(database.batches, key, doc)
key, doc = batch.as_update_doc()
with self.open_mongo() as database:
update_one(database.batches, key, doc)

def store_evidence(self, batch: Batch, *args, **kwargs) -> None:
"""Store Evidence."""
Expand Down

0 comments on commit aa0bc1c

Please sign in to comment.