sqlalchemy->sqlite

Correct a bad copy-paste
change sqlalchemy keyword to sqlite
This commit is contained in:
Mageti 2014-03-27 15:07:01 +01:00
parent bee5c022b1
commit 7d5b72cde1

View File

@ -78,9 +78,9 @@ class SQLitePlugin(object):
# Override global configuration with route-specific values. # Override global configuration with route-specific values.
if "sqlite" in config: # support for configuration before `ConfigDict` namespaces if "sqlite" in config: # support for configuration before `ConfigDict` namespaces
g = lambda key, default: config.get('sqlalchemy', {}).get(key, default) g = lambda key, default: config.get('sqlite', {}).get(key, default)
else: else:
g = lambda key, default: config.get('sqlalchemy.' + key, default) g = lambda key, default: config.get('sqlite.' + key, default)
dbfile = g('dbfile', self.dbfile) dbfile = g('dbfile', self.dbfile)
autocommit = g('autocommit', self.autocommit) autocommit = g('autocommit', self.autocommit)