From c9b51a2cae04a12e93134d8e48c49681cb709fdb Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Sat, 13 Jan 2018 09:43:59 -0500 Subject: [PATCH] Update SQL Alchemy version --- chatterbot/storage/sql_storage.py | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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