mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +00:00
Stringify numbers before wrapping them up in tags
This commit is contained in:
parent
d2540b89d3
commit
6f1601aeeb
@ -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")),
|
||||||
|
Loading…
Reference in New Issue
Block a user