Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Jun 14, 2016
1 parent eb10c42 commit fe44519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions libcrowds_data/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ def __init__(self, **kwargs):
defaults.update(kwargs)
super(DataBlueprint, self).__init__(**defaults)
self.add_url_rule("/", view_func=index)
self.add_url_rule("/<short_name>/csv_export",
view_func=csv_export)
self.add_url_rule("/<short_name>/csv_export", view_func=csv_export)
2 changes: 1 addition & 1 deletion libcrowds_data/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def csv_export(short_name):
resp.headers["Content-type"] = "text/csv"
resp.headers['Cache-Control'] = "no-store, no-cache, must-revalidate, \
post-check=0, pre-check=0, max-age=0"
return resp
return resp
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ def test_correct_data_written_to_csv(self, mock_writer):
headers = mock_writer.call_args_list[0][0][0]
row = mock_writer.call_args_list[1][0][0]
assert sorted(headers) == sorted(expected_headers)
assert sorted(row) == sorted(expected_row)
assert sorted(row) == sorted(expected_row)

0 comments on commit fe44519

Please sign in to comment.