Stringify numbers before wrapping them up in tags

This commit is contained in:
Sajith Sasidharan 2020-06-04 16:18:04 -04:00
parent d2540b89d3
commit 6f1601aeeb

View File

@ -149,7 +149,7 @@ class ResultsBase(object):
shares_on_server.add(s, shareid) shares_on_server.add(s, shareid)
shareid_s = "" shareid_s = ""
if i == 0: if i == 0:
shareid_s = shareid shareid_s = str(shareid)
d = tags.tr(tags.td(shareid_s), d = tags.tr(tags.td(shareid_s),
tags.td(tags.div(s.get_nickname(), class_="nickname"), tags.td(tags.div(s.get_nickname(), class_="nickname"),
tags.div(tags.tt(s.get_name()), class_="nodeid"))) tags.div(tags.tt(s.get_name()), class_="nodeid")))
@ -175,7 +175,7 @@ class ResultsBase(object):
for s in permuted_servers: for s in permuted_servers:
shareids = list(shares_on_server.get(s, [])) shareids = list(shares_on_server.get(s, []))
shareids.reverse() shareids.reverse()
shareids_s = [tags.tt(shareid, " ") for shareid in sorted(shareids)] shareids_s = [tags.tt(str(shareid), " ") for shareid in sorted(shareids)]
d = tags.tr(tags.td(tags.div(s.get_nickname(), class_="nickname"), d = tags.tr(tags.td(tags.div(s.get_nickname(), class_="nickname"),
tags.div(tags.tt(s.get_name()), class_="nodeid")), tags.div(tags.tt(s.get_name()), class_="nodeid")),