Bug Query Logical operators Or
Closed this issue · 3 comments
Deniel090 commented
Hi there!
There is a bug with Or operator.
"NameError: name 'Or' is not defined"
Please fix it.
Thank You!
luqasz commented
I don't know:
- what you are doing (your code)
- traceback
If you don't provide more details e.g. traceback, I will not be able to help.
Take your time and write details what is going on.
Writing like you did, does not help at all.
Deniel090 commented
I tried this code sample from the docs:
name = Key('name')
disabled = Key('disabled')
for row in api.path('/interface').select(name, disabled).where(
disabled == False,
Or(
name == 'ether2',
name == 'wlan-lan',
),
):
..and the result was:
Or(
NameError: name 'Or' is not defined
Without Or, works perfectly.
What am i doing wrong?
luqasz commented
python 101 basics. import it