Skip to content

Commit

Permalink
fix: fix query equals operator value
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch committed Jul 16, 2021
1 parent ca6b3f0 commit 11b65dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nitric/api/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Operator(Enum):
greater_than = ">"
less_than_or_equal = "<="
greater_than_or_equal = ">="
equals = "="
equals = "=="
starts_with = "startsWith"


Expand Down
8 changes: 4 additions & 4 deletions nitric/api/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class Storage(object):

def __init__(self):
"""Construct a Nitric Storage Client."""
self.channel = new_default_channel()
self._storage_stub = StorageServiceStub(channel=self.channel)
self._channel = new_default_channel()
self._storage_stub = StorageServiceStub(channel=self._channel)

def __del__(self):
# close the channel when this client is destroyed
if self.channel is not None:
self.channel.close()
if self._channel is not None:
self._channel.close()

def bucket(self, name: str):
"""Return a reference to a bucket from the connected storage service."""
Expand Down

0 comments on commit 11b65dc

Please sign in to comment.