Skip to content

Commit

Permalink
Fix numPy -> jsonify conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
GastonZalba committed Aug 22, 2020
1 parent a51be32 commit 36dc3f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ En esta interpretación se añade la posibilidad de:
## Requerimientos
- Python > 3
- [pyproj](https://pypi.org/project/pyproj/) >= 2
- [numpy](https://pypi.org/project/numpy/)
- [Flask](https://pypi.org/project/Flask/)
- [numpy](https://pypi.org/project/numpy/)
- [gunicorn](https://pypi.org/project/gunicorn/)
- [flask-talisman](https://pypi.org/project/flask-talisman-rdil/)
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@app.route('/', methods=['GET'])
def root():
return render_template('index.html', version = '0.0.1')
return render_template('index.html', version = '0.0.2')

@app.route('/convert', methods=['POST'])
def convert():
Expand Down Expand Up @@ -48,7 +48,7 @@ def convert():
return jsonify(result)

else:
return jsonify(result)
return jsonify(result.tolist())

except Exception as e:
return jsonify({"message":"Ocurrió un error al procesar. " + str(e)}), 500
Expand Down

0 comments on commit 36dc3f2

Please sign in to comment.