Commit 8853b6d0 authored by 赵杰's avatar 赵杰

修改engine自动提交autocommit=True

parent 654e566b
......@@ -56,9 +56,9 @@ tamp_user_engine = create_engine(
),
echo=True
)
tamp_product_session = sessionmaker(bind=tamp_product_engine)()
tamp_order_session = sessionmaker(bind=tamp_order_engine)()
tamp_user_session = sessionmaker(bind=tamp_user_engine)()
tamp_product_session = sessionmaker(bind=tamp_product_engine, autocommit=True)()
tamp_order_session = sessionmaker(bind=tamp_order_engine, autocommit=True)()
tamp_user_session = sessionmaker(bind=tamp_user_engine, autocommit=True)()
# redis = redis.StrictRedis(
# host=config[env]['redis']['host'],
......
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