4
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2025-07-03 10:47:45 +00:00

add histogramming code, update crawler, allow longer names

This commit is contained in:
Arceliar
2021-07-31 10:34:52 -05:00
parent 17c800f4b1
commit 19cdf8de34
3 changed files with 51 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def generate_graph(time_limit=60*60*3):
if 'nodeinfo' in data[key]:
if 'name' in data[key]['nodeinfo']:
label = str(data[key]['nodeinfo']['name'])
if len(label) <= 32:
if len(label) <= 64:
info.label = label
except: pass
info.label = cgi.escape(info.label)