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

add uploaded_by, JS map fixes

This commit is contained in:
root
2015-11-21 12:44:45 +01:00
committed by Michał Zieliński
parent 3478a0023c
commit 26343b47fb
4 changed files with 21 additions and 13 deletions

View File

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