fixed typo
This commit is contained in:
1 parent
d35321c6c6
commit
a91570768e
2 files changed
+4
-4
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.7.4-stable+timestamp.2013.11.16.04.09.31
|
Version 2.7.4-stable+timestamp.2013.11.16.11.51.18
|
||||||
+3
-3
@@ -5875,12 +5875,12 @@ class MongoDBAdapter(NoSQLAdapter):
|
|||||||
return {'$not': self.expand(first)}
|
return {'$not': self.expand(first)}
|
||||||
|
|
||||||
def AND(self,first,second):
|
def AND(self,first,second):
|
||||||
# pymongo expects: .find({'$or': [{'name':'1'}, {'name':'2'}]})
|
# pymongo expects: .find({'$and': [{'x':'1'}, {'y':'2'}]})
|
||||||
return {'$and': [self.expand(first),self.expend(second)]}
|
return {'$and': [self.expand(first),self.expand(second)]}
|
||||||
|
|
||||||
def OR(self,first,second):
|
def OR(self,first,second):
|
||||||
# pymongo expects: .find({'$or': [{'name':'1'}, {'name':'2'}]})
|
# pymongo expects: .find({'$or': [{'name':'1'}, {'name':'2'}]})
|
||||||
return {'$or': [self.expand(first),self.expend(second)]}
|
return {'$or': [self.expand(first),self.expand(second)]}
|
||||||
|
|
||||||
def BELONGS(self, first, second):
|
def BELONGS(self, first, second):
|
||||||
if isinstance(second, str):
|
if isinstance(second, str):
|
||||||
|
|||||||
Reference in new issue
Block a user