Commit 0531119c authored by David Trattnig's avatar David Trattnig
Browse files

Comment and formatting.

parent c56852d0
......@@ -29,25 +29,25 @@ import datetime
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import orm, func, BigInteger, Boolean, Column, DateTime, Integer, String, ForeignKey, ForeignKeyConstraint
from sqlalchemy.orm import relationship
from sqlalchemy.sql.expression import false, true
from sqlalchemy.ext.hybrid import hybrid_property, hybrid_method
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import orm, func, BigInteger, Boolean, Column, DateTime, Integer, String, ForeignKey, ForeignKeyConstraint
from sqlalchemy.orm import relationship
from sqlalchemy.sql.expression import false, true
from sqlalchemy.ext.hybrid import hybrid_property, hybrid_method
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from sqlalchemy import create_engine
from libraries.enum.auraenumerations import ScheduleEntryType
from libraries.base.config import AuraConfig
from modules.base.simpleutil import SimpleUtil
from libraries.enum.auraenumerations import ScheduleEntryType
from libraries.base.config import AuraConfig
from modules.base.simpleutil import SimpleUtil
# Initialize DB Model and session
engine = sa.create_engine(AuraConfig().get_database_uri())
Base = declarative_base()
Base.metadata.bind = engine
class DB():
session = orm.scoped_session(orm.sessionmaker())(bind=engine)
Model = Base
......
Supports Markdown
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