Fixing pep8 issues for the future
This commit is contained in:
6
dev.py
6
dev.py
@@ -3,11 +3,7 @@ from __future__ import absolute_import
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
if 'PUPPETBOARD_SETTINGS' not in os.environ:
|
||||
os.environ['PUPPETBOARD_SETTINGS'] = os.path.join(
|
||||
os.getcwd(), 'settings.py'
|
||||
)
|
||||
|
||||
# Set PUPPETBOARD_SETTINGS to your settings.py
|
||||
from puppetboard.app import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -203,7 +203,7 @@ def index(env):
|
||||
num_nodes_query.add_field(FunctionOperator('count'))
|
||||
num_nodes_query.add_query(query)
|
||||
|
||||
if app.config['OVERVIEW_FILTER'] != None:
|
||||
if app.config['OVERVIEW_FILTER'] is not None:
|
||||
query.add(app.config['OVERVIEW_FILTER'])
|
||||
|
||||
num_resources_query = ExtractOperator()
|
||||
|
||||
Reference in New Issue
Block a user