From 56a6204dfbce1befd9e27a065796fa8dbb5ad798 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 12 Oct 2012 20:45:18 +1300 Subject: [PATCH] The bot now uses a lowercase version of the connection name as the name of the database - RENAME YOUR OLD DATABASE --- core/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/db.py b/core/db.py index 9c8660c..fee8d9d 100755 --- a/core/db.py +++ b/core/db.py @@ -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]: