fix Makefile after Python deps update

This commit is contained in:
Sam 2018-11-18 13:55:21 +01:00
parent 904cae0028
commit ec80362f19
2 changed files with 4 additions and 4 deletions

View File

@ -16,12 +16,12 @@ clean-install:
install-db:
psql -U postgres -f fittrackee_api/db/create.sql
$(FLASK) db upgrade --directory $(MIGRATIONS)
$(FLASK) init_data
$(FLASK) initdata
init-db:
$(FLASK) drop_db
$(FLASK) drop-db
$(FLASK) db upgrade --directory $(MIGRATIONS)
$(FLASK) init_data
$(FLASK) initdata
install: install-client install-python

View File

@ -19,7 +19,7 @@ def drop_db():
@app.cli.command()
def init_data():
def initdata():
"""Init the database."""
admin = User(
username='admin',