From 53bea4322fe246f7829a639506b84d7268544a9f Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 17 Nov 2016 10:25:15 -0800 Subject: [PATCH] Addressing comments, linting --- superset/cli.py | 4 ++++ superset/views.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/superset/cli.py b/superset/cli.py index 4fe4358084ff1..3c32e14a75c86 100755 --- a/superset/cli.py +++ b/superset/cli.py @@ -57,11 +57,13 @@ def runserver(debug, address, port, timeout, workers): print("Starting server with command: " + cmd) Popen(cmd, shell=True).wait() + @manager.command def init(): """Inits the Superset application""" security.sync_role_definitions() + @manager.option( '-v', '--verbose', action='store_true', help="Show extra information") @@ -77,6 +79,7 @@ def version(verbose): if verbose: print("[DB] : " + "{}".format(db.engine)) + @manager.option( '-t', '--load-test-data', action='store_true', help="Load additional test data") @@ -111,6 +114,7 @@ def load_examples(load_test_data): print("Loading [Unicode test data]") data.load_unicode_test_data() + @manager.option( '-d', '--datasource', help=( diff --git a/superset/views.py b/superset/views.py index 50bc17a2ad32b..05aaa76b818f9 100755 --- a/superset/views.py +++ b/superset/views.py @@ -985,7 +985,7 @@ class LogModelView(SupersetModelView): class QueryView(SupersetModelView): datamodel = SQLAInterface(models.Query) - list_columns = ['user', 'database', 'status', 'start_time', 'start_time'] + list_columns = ['user', 'database', 'status', 'start_time', 'end_time'] appbuilder.add_view( QueryView,