diff --git a/scrapper/views.py b/scrapper/views.py index 5ff6da9..3197d5c 100644 --- a/scrapper/views.py +++ b/scrapper/views.py @@ -47,13 +47,13 @@ def favicon(): @app.route('/view/', methods=['GET']) def result_html(id): data = load_result(id) - return render_template('view.html', data=data) if data else 'Not found', Status.NOT_FOUND + return render_template('view.html', data=data) if data else ('Not found', Status.NOT_FOUND) @app.route('/result/', methods=['GET']) def result_json(id): data = load_result(id) - return data if data else 'Not found', Status.NOT_FOUND + return data if data else ('Not found', Status.NOT_FOUND) @app.route('/screenshot/', methods=['GET'])