Skip to content

Commit

Permalink
Addressing comments, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 17, 2016
1 parent 88150d2 commit 53bea43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions superset/cli.py
Expand Up @@ -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")
Expand All @@ -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")
Expand Down Expand Up @@ -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=(
Expand Down
2 changes: 1 addition & 1 deletion superset/views.py
Expand Up @@ -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,
Expand Down

0 comments on commit 53bea43

Please sign in to comment.