Skip to content

Commit

Permalink
Merge dbio.mongo bug fix from feature/dbio-exp-search into test/beta1a
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed May 10, 2024
2 parents ee46d3d + be03d86 commit 298b0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nistoar/midas/dbio/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def select_records(self, perm: base.Permissions=base.ACLs.OWN, **cnsts) -> Itera
coll = self.native[self._projcoll]

for rec in coll.find(constraints, {'_id': False}):
yield base.ProjectRecord(self._projcoll, rec)
yield base.ProjectRecord(self._projcoll, rec, self)

except Exception as ex:
raise base.DBIOException("Failed while selecting records: " + str(ex), cause=ex)
Expand Down Expand Up @@ -227,7 +227,7 @@ def adv_select_records(self, filter: dict,

coll = self.native[self._projcoll]
for rec in coll.find(filter):
yield base.ProjectRecord(self._projcoll, rec)
yield base.ProjectRecord(self._projcoll, rec, self)

except Exception as ex:
raise base.DBIOException(
Expand Down

0 comments on commit 298b0b6

Please sign in to comment.