Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'where' is not defined #35

Closed
ghost opened this issue Oct 20, 2014 · 2 comments
Closed

NameError: name 'where' is not defined #35

ghost opened this issue Oct 20, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 20, 2014

Cannot use: db.search(where('thing') == 'bike')
as stated in the manual at: http://tinydb.readthedocs.org/en/latest/getting-started.html

Error: NameError: name 'where' is not defined

version: PIP version of 20-10-14

@ghost ghost closed this as completed Oct 20, 2014
@eugene-eeo
Copy link
Contributor

Did you import it from the main module? The third code snippet already imported it:

from tinydb import TinyDB, where

@ghost
Copy link
Author

ghost commented Oct 22, 2014

Yes, I did not notice it because of the common name, closed the issue..

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant