When I try to make a query with more than one parameter as suggested on the documentation I get the following error:
Traceback (most recent call last):
File "<pyshell#30>", line 1, in <module>
db.search(Recipe.ingredients.any(['rice','pork']))
File "C:\Python27\lib\site-packages\tinydb\database.py", line 382, in search
if cond in self._query_cache:
File "C:\Python27\lib\site-packages\tinydb\queries.py", line 48, in __hash__
return hash(self.hashval)
TypeError: unhashable type: 'list'
That's all I have on the db for this test:
{"name": "test", "servings": "6", "ingredients": ["rice", "pork"]}
PS: As you can see I'm using windows, I don't know if this has something to do with the issue.