mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Karma: Fix SQLite threading issue. Closes GH-206.
This commit is contained in:
parent
2a0e232fad
commit
b80d6b27d6
@ -60,11 +60,11 @@ class SqliteKarmaDB(object):
|
|||||||
if filename in self.dbs:
|
if filename in self.dbs:
|
||||||
return self.dbs[filename]
|
return self.dbs[filename]
|
||||||
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[filename] = db
|
self.dbs[filename] = 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[filename] = db
|
self.dbs[filename] = 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-09-11T16:43:21+0200)'
|
version = '0.83.4.1+limnoria (2011-09-11T20:13:20+0200)'
|
||||||
|
Loading…
Reference in New Issue
Block a user