Skip to content

Commit

Permalink
Fix db creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosenpfand committed Aug 2, 2023
1 parent 51aee3a commit 7906234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def get_locale() -> str:

def init_db(drop: bool = True) -> None:
from app.db import db
from app.models import Price, StationAutocomplete, AuthToken, Role, User, Journey

if drop:
db.drop_all()
Expand Down

0 comments on commit 7906234

Please sign in to comment.