more fixes!

This commit is contained in:
Luke Rogers 2013-10-01 23:24:43 +13:00
parent bdec6fabf9
commit 2466c9fbb4
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ def get_db_connection(conn, name=''):
threadid = thread.get_ident()
if name in threaddbs and threadid in threaddbs[name]:
return threaddbs[name][threadid]
filename = os.path.join(bot.persist_dir, name)
filename = os.path.join(bot.data_dir, name)
db = sqlite3.connect(filename, timeout=10)
if name in threaddbs: