Skip to content

Commit

Permalink
fix http404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
amerkurev committed Apr 23, 2023
1 parent 2785ce8 commit 4914609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def favicon():
@app.route('/view/<string:id>', 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/<string:id>', 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/<string:id>', methods=['GET'])
Expand Down

0 comments on commit 4914609

Please sign in to comment.