4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-08-14 15:58:10 +00:00

replace tabs with spaces

This commit is contained in:
Michał Zieliński
2015-11-21 12:47:21 +01:00
parent 26343b47fb
commit e4b9b130db
6 changed files with 422 additions and 422 deletions

View File

@@ -21,23 +21,23 @@ def add_ip():
@app.route('/')
@app.route('/network')
def page_network():
return render_template('network.html', page='network')
return render_template('network.html', page='network')
@app.route('/about')
def page_about():
return render_template('about.html', page='about')
return render_template('about.html', page='about')
@app.route('/sendGraph', methods=['POST'])
def page_sendGraph():
print "Receiving graph from %s" % (request.remote_addr)
print "Receiving graph from %s" % (request.remote_addr)
data = request.form['data']
mail = request.form.get('mail', 'none')
ret = insert_graph_data(ip=get_ip(), config=app.config, data=data, mail=mail)
if ret == None:
return 'OK'
else:
return 'Error: %s' % ret
if ret == None:
return 'OK'
else:
return 'Error: %s' % ret
if __name__ == '__main__':
app.run(host='localhost', port=3000)
app.run(host='localhost', port=3000)