Skip to content

Commit

Permalink
yp
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Feb 21, 2018
1 parent 7b17da4 commit 7bb8cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from flask_script import Manager
from jarr_common.utils import utc_now

from jarr.bootstrap import conf, Base, session
from jarr.bootstrap import conf, Base
from jarr.scripts.probes import ArticleProbe, FeedProbe, FeedLatenessProbe
from jarr.controllers import FeedController, UserController

Expand All @@ -25,7 +25,7 @@ def db_create(login='admin', password='admin'):
admin = {'is_admin': True, 'is_api': True,
'login': login, 'password': password}
with application.app_context():
session.create_all()
Base.metadata.create_all()
UserController(ignore_context=True).create(**admin)


Expand Down

0 comments on commit 7bb8cc4

Please sign in to comment.