4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-06-26 11:39:23 +00:00

fix sendGraph

This commit is contained in:
Michał Zieliński
2015-11-21 14:12:23 +01:00
parent 55ec38f776
commit 646d8d74e5
2 changed files with 8 additions and 6 deletions

View File

@ -48,11 +48,11 @@ def insert_graph_data(config, data, mail, ip, version):
if len(nodes) == 0 or len(edges) == 0:
return 'No valid nodes or edges'
uploaded_by = ip
uploaded_by = ip
try:
with NodeDB(config) as db:
db.insert_graph(nodes, edges, uploaded_by)
db.insert_graph(nodes, edges, uploaded_by)
except Exception:
traceback.print_exc()
return 'Database failure'