Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Nov 6, 2022
1 parent 43e5fea commit 4dc59f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dictdatabase/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ def __init__(self, path: tuple, key: str = None, where: Callable[[Any, Any], boo
for p in path:
pc += p if isinstance(p, list) else [p]
self.path = utils.to_path_str([str(p) for p in pc])
self.key = key
self.where = where
self.op_type = OperationType(self.path, self.key, self.where)
# Invariants:
# - Both key and where cannot be not None at the same time
# - If key is not None, then there is no wildcard in the path.
self.key = key
self.where = where


def exists(self) -> bool:
Expand Down

0 comments on commit 4dc59f5

Please sign in to comment.