Skip to content

Commit

Permalink
Normalize sqlite database extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed May 17, 2019
1 parent 5c46de1 commit 215e5f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
17 changes: 2 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
bin
build
dist
include
lib
venv
.env
.out
.tox
.coverage
*.pyc
Expand All @@ -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
2 changes: 1 addition & 1 deletion chatterbot/storage/sql_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion examples/terminal_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...')
Expand Down
2 changes: 1 addition & 1 deletion examples/tkinter_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 215e5f1

Please sign in to comment.