I'm currently working on a flask web app with a large database which meant that I had to discard the code I had initially written for WhooshAlchemy. The first time I tested it I got the following error.
Post.query.whoosh_search('phone').all()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Abdul\Anaconda3\lib\site-packages\flask_whooshalchemy.py", line 103, in whoosh_search
if not isinstance(query, unicode):
NameError: name 'unicode' is not defined
does this have anything to do with python 3 renaming Unicode to str a couple of years ago or is it something else? I tried changing the Unicode into str but that did not seem to fix the problem? any useful input would be appreciated.