conf: Prioritize sqlite3 over sqlalchemy in supybot.databases

It's usually a better choice for plugins that implement both
This commit is contained in:
Valentin Lorentz 2022-03-06 13:37:01 +01:00
parent 9e995d8ac2
commit d58d8d4a71

View File

@ -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):