MoobotFactoids: Use when opening the database.

This commit is contained in:
Valentin Lorentz 2011-07-02 11:50:31 +02:00
parent a021584f99
commit 8c1d10e8f3
2 changed files with 3 additions and 3 deletions

View File

@ -109,11 +109,11 @@ class SqliteMoobotDB(object):
filename = plugins.makeChannelFilename(self.filename, channel) filename = plugins.makeChannelFilename(self.filename, channel)
if os.path.exists(filename): if os.path.exists(filename):
db = sqlite3.connect(filename) db = sqlite3.connect(filename, check_same_thread=False)
db.text_factory = str db.text_factory = str
self.dbs[channel] = db self.dbs[channel] = db
return db return db
db = sqlite3.connect(filename) db = sqlite3.connect(filename, check_same_thread=False)
db.text_factory = str db.text_factory = str
self.dbs[channel] = db self.dbs[channel] = db
cursor = db.cursor() cursor = db.cursor()

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change """stick the various versioning attributes in here, so we only have to change
them once.""" them once."""
version = '0.83.4.1+limnoria (2011-06-25T15:15:16+0200)' version = '0.83.4.1+limnoria (2011-07-02T11:50:30+0200)'