X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=www%2Fmaps%2Fmaps%2Fcontrollers%2Fdirections.py;h=dab8f6630930ac2a2a9b60e907e0584254b9ef6f;hb=fe0f334b28cb0c3ed774e86c6067be8382f6c79e;hp=a16bad20bf3fe0d2e7aa89d0bc70031ffcdfe8c1;hpb=5a436a9d53621f9f30991ee3118f4fd16b3ec8dd;p=dead%2Fcensus-tools.git diff --git a/www/maps/maps/controllers/directions.py b/www/maps/maps/controllers/directions.py index a16bad2..dab8f66 100644 --- a/www/maps/maps/controllers/directions.py +++ b/www/maps/maps/controllers/directions.py @@ -101,7 +101,7 @@ class DirectionsController(BaseController): row += ', ' row += str(float(route['distance']['value']) / 1000) row += "\n" - + return row @@ -110,7 +110,7 @@ class DirectionsController(BaseController): csv = '' for result in directions_array: - csv += self.directions_result_to_csv(result) + "\n" + csv += self.directions_result_to_csv(result) response.content_type = 'text/csv' response.headers['Content-disposition'] = 'attachment; filename=distances.csv'