Skip to content

Commit

Permalink
Merge pull request #1014 from jmmshn/safe_update
Browse files Browse the repository at this point in the history
Minor fix to URI store
  • Loading branch information
rkingsbury authored Dec 3, 2024
2 parents 668c2e4 + e69ea16 commit dc204f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/maggma/stores/mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def __init__(
collection_name: str,
database: Optional[str] = None,
ssh_tunnel: Optional[SSHTunnel] = None,
safe_update: bool = False,
mongoclient_kwargs: Optional[dict] = None,
default_sort: Optional[dict[str, Union[Sort, int]]] = None,
**kwargs,
Expand All @@ -461,6 +462,7 @@ def __init__(
self.uri = uri
self.ssh_tunnel = ssh_tunnel
self.default_sort = default_sort
self.safe_update = safe_update
self.mongoclient_kwargs = mongoclient_kwargs or {}

# parse the dbname from the uri
Expand Down

0 comments on commit dc204f8

Please sign in to comment.