Skip to content

Commit 296809e

Browse files
committed
Fix for postgres connections (reviewing compatibility for gunthercox#2134)
1 parent 8245657 commit 296809e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chatterbot/storage/sql_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def set_sqlite_pragma(dbapi_connection, connection_record):
4444
dbapi_connection.execute('PRAGMA journal_mode=WAL')
4545
dbapi_connection.execute('PRAGMA synchronous=NORMAL')
4646

47-
if not inspect(self.engine).has_table(self.engine, 'statement'):
47+
if not inspect(self.engine).has_table('statement'):
4848
self.create_database()
4949

5050
# Check if the expected index exists on the text field of the statement table

0 commit comments

Comments
 (0)