Permalink
Browse files

Fix an import that never got refactored.

  • Loading branch information...
1 parent a8cffa3 commit 03b06143a412e065b3a28db48ef3d3fb910e511c @ralphbean ralphbean committed Feb 19, 2014
Showing with 4 additions and 3 deletions.
  1. +2 −2 summershum/cli.py
  2. +2 −1 summershum/consumer.py
View
@@ -4,7 +4,7 @@
import fedmsg.config
import summershum.core
-import summershum.utils
+import summershum.model
import logging
import logging.config
@@ -51,7 +51,7 @@ def main():
fedmsg.init(**config)
- session = summershum.utils.create_session(
+ session = summershum.model.create_session(
config['summershum.sqlalchemy.url'],
create=True,
)
View
@@ -1,5 +1,6 @@
import fedmsg.consumers
import summershum.core
+import summershum.model
import logging
log = logging.getLogger("summershum")
@@ -12,7 +13,7 @@ class SummerShumConsumer(fedmsg.consumers.FedmsgConsumer):
def __init__(self, *args, **kwargs):
super(SummerShumConsumer, self).__init__(*args, **kwargs)
log.info("Initializing db session")
- self.session = summershum.utils.create_session(
+ self.session = summershum.model.create_session(
self.hub.config['summershum.sqlalchemy.url'],
create=True,
)

0 comments on commit 03b0614

Please sign in to comment.