diff --git a/chatterbot/storage/sql_storage.py b/chatterbot/storage/sql_storage.py index 8fbf2d2b2..c8d79bea7 100644 --- a/chatterbot/storage/sql_storage.py +++ b/chatterbot/storage/sql_storage.py @@ -190,7 +190,8 @@ def filter(self, **kwargs): if isinstance(_filter, list): if len(_filter) == 0: _query = _response_query.filter( - Statement.in_response_to == None) # NOQA Here must use == instead of is + Statement.in_response_to == None # NOQA Here must use == instead of is + ) else: for f in _filter: _query = _response_query.filter( diff --git a/requirements.txt b/requirements.txt index 455b9281e..cd0a22add 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ nltk>=3.2,<4.0 pymongo>=3.3,<4.0 python-dateutil>=2.6,<2.7 python-twitter>=3.0,<4.0 -sqlalchemy>=1.1,<1.2 +sqlalchemy>=1.2,<1.3