Skip to content

Commit

Permalink
Fix flake errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
trampfox committed Jul 2, 2019
1 parent 00d387a commit 68212d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grafana_dashboards/components/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ def gen_json_from_data(self, data, context):
'value': '$__all' if data['current'] == 'All' else data['current']
}
if 'options' in data:
template_json['options'] = [{'text': option, 'value': option} for option
template_json['options'] = [{'text': option, 'value': option} for option
in (data['options'])]
if 'includeAll' in data and data['includeAll'] == True:
if 'includeAll' in data and data['includeAll'] is True:
all_option = {'selected': True, 'text': 'All', 'value': '$__all'}
template_json.setdefault('options', []).insert(0,all_option)
template_json.setdefault('options', []).insert(0, all_option)
return template_json


Expand Down

0 comments on commit 68212d7

Please sign in to comment.