mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
MoobotFactoids: Use when opening the database.
This commit is contained in:
parent
a021584f99
commit
8c1d10e8f3
@ -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()
|
||||||
|
@ -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)'
|
||||||
|
Loading…
Reference in New Issue
Block a user