From 215e5f1298b76c62d41cc69c43bf0ce653fa3822 Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Fri, 17 May 2019 18:56:53 -0400 Subject: [PATCH] Normalize sqlite database extensions --- .gitignore | 17 ++--------------- chatterbot/storage/sql_storage.py | 2 +- examples/terminal_example.py | 2 +- examples/tkinter_gui.py | 2 +- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index e757fccdc..0d937453a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ bin build dist -include -lib venv +.env +.out .tox .coverage *.pyc @@ -15,16 +15,3 @@ venv # Database files *.sqlite3 -*.db - -# IntelliJ -.idea -*.iml - -examples/settings.py -examples/ubuntu_dialogs* -.env -.out - -# ignore Ubuntu corpus files -data \ No newline at end of file diff --git a/chatterbot/storage/sql_storage.py b/chatterbot/storage/sql_storage.py index 4f01fb09f..afa6e9d21 100644 --- a/chatterbot/storage/sql_storage.py +++ b/chatterbot/storage/sql_storage.py @@ -11,7 +11,7 @@ class SQLStorageAdapter(StorageAdapter): It will check if tables are present, if they are not, it will attempt to create the required tables. - :keyword database_uri: eg: sqlite:///database_test.db', + :keyword database_uri: eg: sqlite:///database_test.sqlite3', The database_uri can be specified to choose database driver. :type database_uri: str """ diff --git a/examples/terminal_example.py b/examples/terminal_example.py index 5f2c80def..73bd60541 100644 --- a/examples/terminal_example.py +++ b/examples/terminal_example.py @@ -14,7 +14,7 @@ 'chatterbot.logic.TimeLogicAdapter', 'chatterbot.logic.BestMatch' ], - database_uri='sqlite:///database.db' + database_uri='sqlite:///database.sqlite3' ) print('Type something to begin...') diff --git a/examples/tkinter_gui.py b/examples/tkinter_gui.py index 52d9e6ef6..09b0584a1 100644 --- a/examples/tkinter_gui.py +++ b/examples/tkinter_gui.py @@ -23,7 +23,7 @@ def __init__(self, *args, **kwargs): logic_adapters=[ "chatterbot.logic.BestMatch" ], - database_uri="sqlite:///database.db" + database_uri="sqlite:///database.sqlite3" ) self.title("Chatterbot")