Skip to content

Commit

Permalink
Update devstart to use new demo service.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Dec 13, 2024
1 parent 5891935 commit 21b672e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from lute.app_factory import create_app
from lute.config.app_config import AppConfig
from lute.db import db
from lute.db.demo import load_demo_data
from lute.db.demo import Service as DemoService

log = logging.getLogger("werkzeug")
log.setLevel(logging.ERROR)
Expand All @@ -49,7 +49,8 @@ def dev_print(s):
dev_print("")
app = create_app(config_file, output_func=dev_print)
with app.app_context():
load_demo_data(db.session)
svc = DemoService(db.session)
svc.load_demo_data()

ac = AppConfig(config_file)
dev_print(f"\nversion {__version__}")
Expand Down

0 comments on commit 21b672e

Please sign in to comment.