Skip to content

Commit

Permalink
Fix the mapbox for Druid (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base authored and mistercrunch committed Jul 13, 2016
1 parent 212284c commit 09c95fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions caravel/forms.py
Expand Up @@ -295,11 +295,13 @@ def __init__(self, viz):
'all_columns_x': (SelectField, {
"label": _("X"),
"choices": self.choicify(datasource.column_names),
"default": datasource.column_names[0],
"description": _("Columns to display")
}),
'all_columns_y': (SelectField, {
"label": _("Y"),
"choices": self.choicify(datasource.column_names),
"default": datasource.column_names[0],
"description": _("Columns to display")
}),
'druid_time_origin': (FreeFormSelectField, {
Expand Down Expand Up @@ -829,6 +831,7 @@ def __init__(self, viz):
("mapbox://styles/mapbox/satellite-v9", "Satellite"),
("mapbox://styles/mapbox/outdoors-v9", "Outdoors"),
],
"default": "mapbox://styles/mapbox/streets-v9",
"description": _("Base layer map style")
}),
'clustering_radius': (FreeFormSelectField, {
Expand Down
3 changes: 2 additions & 1 deletion caravel/models.py
Expand Up @@ -1190,7 +1190,8 @@ def query( # druid
inner_from_dttm=None, inner_to_dttm=None,
orderby=None,
extras=None, # noqa
select=None,): # noqa
select=None, # noqa
columns=None, ):
"""Runs a query against Druid and returns a dataframe.
This query interface is common to SqlAlchemy and Druid
Expand Down

0 comments on commit 09c95fb

Please sign in to comment.