From ec80362f196a990a05700397e22c119262aa6b66 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 18 Nov 2018 13:55:21 +0100 Subject: [PATCH] fix Makefile after Python deps update --- Makefile | 6 +++--- fittrackee_api/server.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb591386..aa8f011c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/fittrackee_api/server.py b/fittrackee_api/server.py index d91a0643..5d3b5da9 100644 --- a/fittrackee_api/server.py +++ b/fittrackee_api/server.py @@ -19,7 +19,7 @@ def drop_db(): @app.cli.command() -def init_data(): +def initdata(): """Init the database.""" admin = User( username='admin',