Commit 96c41df7 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

fixing hostname detection

parent c2d45119
......@@ -39,14 +39,14 @@ def data():
@app.route('/astros')
def astros():
return jsonify({
'from': socket.socket.gethostname(),
'from': socket.gethostname(),
'data': load_url("http://api.open-notify.org/astros.json", request.headers)
})
@app.route('/position')
def position():
return jsonify({
'from': socket.socket.gethostname(),
'from': socket.gethostname(),
'data': load_url("http://api.open-notify.org/iss-now.json", request.headers)
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment