Skip to content

Commit

Permalink
A few misc whitespaces fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman committed Feb 29, 2016
1 parent 1aad959 commit c1b3393
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bin/release_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def upload_asset(release, filepath):
headers = {'Content-Type': 'application/gzip'}
response = requests.post(upload_url, file_content, params={'name': filename}, headers=headers, auth=auth, verify=False)

if response.status_code != 201: # not 200/201/...
if response.status_code != 201: # not 200/201/...
raise exception_from_error('Failed uploading asset', response)

return response
Expand Down
2 changes: 1 addition & 1 deletion redash/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from redash import redis_connection, models, __version__
from redash import redis_connection, models, __version__


def get_status():
Expand Down
16 changes: 8 additions & 8 deletions redash/query_runner/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
enabled = False

PRESTO_TYPES_MAPPING = {
"integer" : TYPE_INTEGER,
"long" : TYPE_INTEGER,
"bigint" : TYPE_INTEGER,
"float" : TYPE_FLOAT,
"double" : TYPE_FLOAT,
"boolean" : TYPE_BOOLEAN,
"string" : TYPE_STRING,
"integer": TYPE_INTEGER,
"long": TYPE_INTEGER,
"bigint": TYPE_INTEGER,
"float": TYPE_FLOAT,
"double": TYPE_FLOAT,
"boolean": TYPE_BOOLEAN,
"string": TYPE_STRING,
"varchar": TYPE_STRING,
"date" : TYPE_DATE,
"date": TYPE_DATE,
}


Expand Down
8 changes: 4 additions & 4 deletions redash/query_runner/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, configuration):
self.syntax = "python"

self._allowed_modules = {}
self._script_locals = { "result" : { "rows" : [], "columns" : [], "log" : [] } }
self._script_locals = {"result": {"rows": [], "columns": [], "log": []}}
self._enable_print_log = True
self._custom_print = CustomPrint()

Expand Down Expand Up @@ -121,9 +121,9 @@ def add_result_column(self, result, column_name, friendly_name, column_type):
result["columns"] = []

result["columns"].append({
"name" : column_name,
"friendly_name" : friendly_name,
"type" : column_type
"name": column_name,
"friendly_name": friendly_name,
"type": column_type
})

def add_result_row(self, result, values):
Expand Down
2 changes: 1 addition & 1 deletion redash/query_runner/vertica.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run_query(self, query):
import vertica_python

if query == "":
json_data=None
json_data = None
error = "Query is empty"
return json_data, error

Expand Down

0 comments on commit c1b3393

Please sign in to comment.