Skip to content

Commit 29215f1

Browse files
authored
Update collection.py
1 parent 979bf4c commit 29215f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filexdb/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ def find(self, query = None, limit = None) -> List[Document]:
145145
:param query: Condition to search Document
146146
:return: List of Document
147147
"""
148-
if limit is not None && type(limit) == type((1,)):
148+
if limit is not None and type(limit) == type((1,)):
149149
raise TypeError('Limit should be a tuple')
150150

151-
if query is not None && type(query) == type({}):
151+
if query is not None and type(query) == type({}):
152152
raise TypeError('Limit should be a JOSN Object')
153153

154154
# Default result

0 commit comments

Comments
 (0)