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

Validate received graph format

This commit is contained in:
Vanhala Antti
2014-06-04 21:41:33 +03:00
parent 613b5aec09
commit ddb2a681e4
5 changed files with 59 additions and 28 deletions

View File

@@ -25,10 +25,10 @@ def page_sendGraph():
data = request.form['data']
ret = insert_graph_data(app.config, data)
if ret:
if ret == None:
return 'OK'
else:
return 'FAIL'
return 'Error: %s' % ret
if __name__ == '__main__':
app.run(host='::')