|
|
@ -98,7 +98,7 @@ def contrib_entry(ipv6): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def error_check_insert_into_db(dht, switchpeers, ipv6): |
|
|
|
def error_check_insert_into_db(dht, switchpeers, ipv6): |
|
|
|
# try: |
|
|
|
try: |
|
|
|
if dht.get("status") == "success": |
|
|
|
if dht.get("status") == "success": |
|
|
|
for x, y in dht["response"]["dht"].iteritems(): |
|
|
|
for x, y in dht["response"]["dht"].iteritems(): |
|
|
|
if valid_ipv6_check(x) and check_coords(y["coords"]): |
|
|
|
if valid_ipv6_check(x) and check_coords(y["coords"]): |
|
|
@ -110,8 +110,8 @@ def error_check_insert_into_db(dht, switchpeers, ipv6): |
|
|
|
insert_new_entry(x[1]["ip"], x[1]["coords"]) |
|
|
|
insert_new_entry(x[1]["ip"], x[1]["coords"]) |
|
|
|
|
|
|
|
|
|
|
|
contrib_entry(ipv6) |
|
|
|
contrib_entry(ipv6) |
|
|
|
# except: |
|
|
|
except: |
|
|
|
# print"error in json file, aborting" |
|
|
|
print"error in json file, aborting" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def proccess_incoming_data(datty, ipv6): |
|
|
|
def proccess_incoming_data(datty, ipv6): |
|
|
|