Commit c8efcd52 authored by Julien Cigar's avatar Julien Cigar
Browse files

fix typo

parent 58458a2a
......@@ -71,13 +71,13 @@ class SAEnginePlugin(plugins.SimplePlugin):
if not self.sa_meta:
self.sa_meta = MetaData(engine=self.sa_engine,
**_config.get('metadata', {}))
elif not sa.sa_meta.is_bound():
elif not self.sa_meta.is_bound():
self.sa_meta.bind = self.sa_engine
# Session
if not self.sa_session:
_session = sessionmaker(**config.get('session', {}))
_session = sessionmaker(**_config.get('session', {}))
self.sa_session = scoped_session(_session)
self.sa_session.configure(bind=self.sa_engine)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment