The bot now uses a lowercase version of the connection name as the name of the database - RENAME YOUR OLD DATABASE
This commit is contained in:
parent
264b765831
commit
56a6204dfb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ def get_db_connection(conn, name=''):
|
|||
"returns an sqlite3 connection to a persistent database"
|
||||
|
||||
if not name:
|
||||
name = '%s.%s.db' % (conn.nick, conn.server)
|
||||
name = '{}.db'.format(conn.name)
|
||||
|
||||
threadid = thread.get_ident()
|
||||
if name in threaddbs and threadid in threaddbs[name]:
|
||||
|
|
Reference in a new issue