Skip to content

Commit 2dde0e3

Browse files
committed
better queries (query using arg=val instead of passing {arg: val})
1 parent a212e71 commit 2dde0e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inbox/restful_model_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def first(self):
3434
def all(self):
3535
return self.range(0, maxint)
3636

37-
def where(filters):
37+
def where(self, **kwargs):
3838
collection = deepcopy(self)
39-
collection.filters = filters
39+
collection.filters = kwargs
4040
return collection
4141

4242
def range(self, offset = 0, limit = CHUNK_SIZE):

0 commit comments

Comments
 (0)