Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Disable autocommit in example
This makes our .commit calls work again.

Fixes #47
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
  • Loading branch information
puiterwijk committed May 9, 2016
1 parent 38cd28c commit b191851b74b0786def15802333d2d94cecefa968
Showing 1 changed file with 1 addition and 1 deletion.
@@ -34,7 +34,7 @@

# setup sqlalchemy
engine = create_engine(app.config['DATABASE_URI'])
db_session = scoped_session(sessionmaker(autocommit=True,
db_session = scoped_session(sessionmaker(autocommit=False,
autoflush=True,
bind=engine))
Base = declarative_base()

0 comments on commit b191851

Please sign in to comment.