diff options
author | emkael <emkael@tlen.pl> | 2017-01-04 00:45:26 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-04 20:56:23 +0100 |
commit | 63ab18bb8903ddd8d88516fda450b815329ab357 (patch) | |
tree | 997a152c68106d0dc085517b066bb2c06fed671e /ausbutler/model.py | |
parent | b231002cd6bd5df74867627576a75c510b41e1f1 (diff) |
Code reformatting
Diffstat (limited to 'ausbutler/model.py')
-rw-r--r-- | ausbutler/model.py | 6 |
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' |