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: install-db:
psql -U postgres -f fittrackee_api/db/create.sql psql -U postgres -f fittrackee_api/db/create.sql
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FLASK) db upgrade --directory $(MIGRATIONS)
$(FLASK) init_data $(FLASK) initdata
init-db: init-db:
$(FLASK) drop_db $(FLASK) drop-db
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FLASK) db upgrade --directory $(MIGRATIONS)
$(FLASK) init_data $(FLASK) initdata
install: install-client install-python install: install-client install-python

View File

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