mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 05:03:07 +01:00
conf: Prioritize sqlite3 over sqlalchemy in supybot.databases
It's usually a better choice for plugins that implement both
This commit is contained in:
parent
9e995d8ac2
commit
d58d8d4a71
@ -1021,10 +1021,10 @@ class Databases(registry.SpaceSeparatedListOfStrings):
|
|||||||
v = super(Databases, self).__call__()
|
v = super(Databases, self).__call__()
|
||||||
if not v:
|
if not v:
|
||||||
v = ['anydbm', 'dbm', 'cdb', 'flat', 'pickle']
|
v = ['anydbm', 'dbm', 'cdb', 'flat', 'pickle']
|
||||||
if 'sqlite3' in sys.modules:
|
|
||||||
v.insert(0, 'sqlite3')
|
|
||||||
if 'sqlalchemy' in sys.modules:
|
if 'sqlalchemy' in sys.modules:
|
||||||
v.insert(0, 'sqlalchemy')
|
v.insert(0, 'sqlalchemy')
|
||||||
|
if 'sqlite3' in sys.modules:
|
||||||
|
v.insert(0, 'sqlite3')
|
||||||
return v
|
return v
|
||||||
|
|
||||||
def serialize(self):
|
def serialize(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user