Skip to content

Commit 51f6b97

Browse files
author
Gustavo Fonseca
committed
Corrige bug causado por símbolos inválidos por conta da organização dos códigos.
1 parent f7d8f13 commit 51f6b97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doi_request/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
DBSession = scoped_session(sessionmaker())
99
Base = declarative_base()
1010

11-
PlainSession = sessionmaker(bind=create_engine_from_env())
12-
1311

1412
def create_engine_from_env():
1513
return create_engine(os.environ.get('SQL_ENGINE', 'sqlite:///:memory:'))
@@ -25,6 +23,8 @@ def initialize_sql(engine):
2523
Base.metadata.create_all(engine)
2624

2725

26+
PlainSession = sessionmaker(bind=create_engine_from_env())
27+
2828
@contextmanager
2929
def transactional_session():
3030
session = PlainSession()

0 commit comments

Comments
 (0)