Skip to content

Commit

Permalink
fix: Updated return value from download errors view
Browse files Browse the repository at this point in the history
Download errors view returned a tuple containing a Response
object but newer version of flask requires a tuple containing two
or more items, or a Response object.  Changed view to just return
the Response object.
  • Loading branch information
chrisarridge committed Aug 13, 2024
1 parent e3a34f4 commit 595a63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def basic_page(page_name):

@app.route('/data/download_errors.json')
def download_errors_json():
return Response(json.dumps(current_stats['download_errors'], indent=2), mimetype='application/json'),
return Response(json.dumps(current_stats['download_errors'], indent=2), mimetype='application/json')


@app.route('/')
Expand Down

0 comments on commit 595a63b

Please sign in to comment.