From df5869501a0127ca1cc56de63f84a1f5700a44e6 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 27 Apr 2016 10:56:37 +0200 Subject: [PATCH] rename commands in the manager --- manage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manage.py b/manage.py index 43bac59..b34e3b4 100644 --- a/manage.py +++ b/manage.py @@ -5,18 +5,18 @@ from api.models import Designer manager = Manager(app) @manager.command -def initdb(): +def init_db(): db.create_all() print("All tables created") @manager.command -def dropdb(): - if prompt_bool("Are you sure you want to lose all your data"): +def drop_db(): + if prompt_bool("Are you sure you want to lose all your data?"): db.drop_all() print("All tables dropped") @manager.command -def seed(): +def seed_db(): print("Adding sample data") designer = Designer(name="Martin", path='/martin') db.session.add(designer)