mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +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__()
|
||||
if not v:
|
||||
v = ['anydbm', 'dbm', 'cdb', 'flat', 'pickle']
|
||||
if 'sqlite3' in sys.modules:
|
||||
v.insert(0, 'sqlite3')
|
||||
if 'sqlalchemy' in sys.modules:
|
||||
v.insert(0, 'sqlalchemy')
|
||||
if 'sqlite3' in sys.modules:
|
||||
v.insert(0, 'sqlite3')
|
||||
return v
|
||||
|
||||
def serialize(self):
|
||||
|
Loading…
Reference in New Issue
Block a user