First example does not work
hdzierz opened this issue · 5 comments
hdzierz commented
When I ran your first very simple example I got an error
pql.find("a > 1 and b == 'foo' or not c.d == False")
ParseError: Unsupported syntax (NameConstant). options: ['Call', 'Dict', 'List', 'Name', 'Num', 'Str', 'operator_and_right']
I think you need to replace False with null.
pql.find("a > 1 and b == 'foo' or not c.d == null")
Out[24]: {'$or': [{'a': 1}, {'$and': [{'b': '2'}, {'c.d': None}]}]}
I used Python 3.5.
Cheers
H
alonho commented
It seems the library doesn't support python 3. I'll fix it soon.
vishalmelmatti commented
+1
sp98 commented
+1
maimike commented
Not work now :(
maimike commented
you can install pqlpython3