From ad7aa6254a2b0e089ce1a7ae4e2ad7b0a2dd04f7 2012-04-21 12:48:51 From: Lance Edgar Date: 2012-04-21 12:48:51 Subject: [PATCH] init tweak --- diff --git a/rattail/db.py b/rattail/db.py index 49eb0d5bb39a9642484b2b1f9d2fff106f4124ef..4f8a5e93115f5298399c3e09d7246c2f1d41326a 100644 --- a/rattail/db.py +++ b/rattail/db.py @@ -31,12 +31,12 @@ from edbob.db.extensions import activate_extension import rattail -def init_database(session): +def init_database(engine, session): """ Initialize an ``edbob`` database for use with Rattail. """ - activate_extension('rattail', session.bind) + activate_extension('rattail', engine) columns = [ ('F01', 'UPC', 'GPC(14)'),