summaryrefslogtreecommitdiff
path: root/ausbutler/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'ausbutler/model.py')
-rw-r--r--ausbutler/model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ausbutler/model.py b/ausbutler/model.py
index cb17ce9..6536b6a 100644
--- a/ausbutler/model.py
+++ b/ausbutler/model.py
@@ -1,12 +1,12 @@
from cached_property import cached_property
-from sqlalchemy import Column, ForeignKey, MetaData, Table, func
+from sqlalchemy import Column, MetaData, Table, func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.types import Float, Integer
-from .db import Session
+from .db import get_session
Base = declarative_base()
-session = Session()
+session = get_session()
class AusButler(Base):
__tablename__ = 'aus_butler'