Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HaloDragon7410 authored Sep 25, 2019
1 parent 533a042 commit e6d147a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userbot/plugins/sql_helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@


# the secret configuration specific things
from config import Config
from var import Var


def start() -> scoped_session:
engine = create_engine(Config.DB_URI)
engine = create_engine(Var.DB_URI)
BASE.metadata.bind = engine
BASE.metadata.create_all(engine)
return scoped_session(sessionmaker(bind=engine, autoflush=False))
Expand Down

0 comments on commit e6d147a

Please sign in to comment.