Render problems only when there's a problem list

This commit is contained in:
Sajith Sasidharan 2020-05-06 13:10:31 -04:00
parent bbbca6c000
commit 0c6889274d
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
<h2>Update Results</h2>
<ul>
<li t:render="problems" />
<t:transparent t:render="problems" />
<li>Total: <span t:render="time_total" /></li>
<ul>
<li>Initial Queries: <span t:render="time_initial_queries" /></li>

View File

@ -931,7 +931,7 @@ class MapupdateStatusElement(Element):
def problems(self, req, tag):
problems = self._update_status.problems
if not problems:
return tag("")
return tag
l = tags.ul()
for peerid in sorted(problems.keys()):
peerid_s = idlib.shortnodeid_b2a(peerid)