Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the build's linting errors #3887

Merged
merged 1 commit into from Nov 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions superset/cli.py
Expand Up @@ -133,14 +133,14 @@ def load_examples(load_test_data):
print('Loading [Misc Charts] dashboard')
data.load_misc_dashboard()

print("Loading DECK.gl demo")
print('Loading DECK.gl demo')
data.load_deck_dash()

if load_test_data:
print('Loading [Unicode test data]')
data.load_unicode_test_data()

print("Loading flights data")
print('Loading flights data')
data.load_flights()


Expand Down
24 changes: 12 additions & 12 deletions superset/viz.py
Expand Up @@ -1769,17 +1769,17 @@ def get_data(self, df):
d = dict(position=self.get_position(d), **self.get_properties(d))
features.append(d)
return {
"features": features,
"mapboxApiKey": config.get('MAPBOX_API_KEY'),
'features': features,
'mapboxApiKey': config.get('MAPBOX_API_KEY'),
}


class DeckScatterViz(BaseDeckGLViz):

"""deck.gl's ScatterLayer"""

viz_type = "deck_scatter"
verbose_name = _("Deck.gl - Scatter plot")
viz_type = 'deck_scatter'
verbose_name = _('Deck.gl - Scatter plot')

def query_obj(self):
self.point_radius_fixed = self.form_data.get('point_radius_fixed')
Expand All @@ -1794,8 +1794,8 @@ def get_metrics(self):

def get_properties(self, d):
return {
"radius": self.fixed_value if self.fixed_value else d.get(self.metric),
"cat_color": d.get(self.dim) if self.dim else None,
'radius': self.fixed_value if self.fixed_value else d.get(self.metric),
'cat_color': d.get(self.dim) if self.dim else None,
}

def get_data(self, df):
Expand All @@ -1813,24 +1813,24 @@ class DeckScreengrid(BaseDeckGLViz):

"""deck.gl's ScreenGridLayer"""

viz_type = "deck_screengrid"
verbose_name = _("Deck.gl - Screen Grid")
viz_type = 'deck_screengrid'
verbose_name = _('Deck.gl - Screen Grid')


class DeckGrid(BaseDeckGLViz):

"""deck.gl's DeckLayer"""

viz_type = "deck_grid"
verbose_name = _("Deck.gl - 3D Grid")
viz_type = 'deck_grid'
verbose_name = _('Deck.gl - 3D Grid')


class DeckHex(BaseDeckGLViz):

"""deck.gl's DeckLayer"""

viz_type = "deck_hex"
verbose_name = _("Deck.gl - 3D HEX")
viz_type = 'deck_hex'
verbose_name = _('Deck.gl - 3D HEX')


class EventFlowViz(BaseViz):
Expand Down