Remove some whitespace

This commit is contained in:
Sajith Sasidharan 2020-07-08 10:15:33 -04:00
parent d6ea30b935
commit 81216f18bf
2 changed files with 1 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class FakeDownloadResults(object):
self.servers_used = ["s-1", "s-2", "s-3"] self.servers_used = ["s-1", "s-2", "s-3"]
self.server_problems = {"s-1": "unknown problem"} self.server_problems = {"s-1": "unknown problem"}
self.servermap = {"s-1": [1,2,3], "s-2": [2,3,4], "s-3": [0,1,3]} self.servermap = {"s-1": [1,2,3], "s-2": [2,3,4], "s-3": [0,1,3]}
self.timings = { "fetch_per_server": {"s-1": [1,2,3], "s-2": [2], "s-3": [3]}} self.timings = {"fetch_per_server": {"s-1": [1,2,3], "s-2": [2], "s-3": [3]}}
@implementer(IDownloadStatus) @implementer(IDownloadStatus)

View File

@ -670,10 +670,8 @@ class DownloadStatusElement(Element):
@renderer @renderer
def servers_used(self, req, tag): def servers_used(self, req, tag):
servers_used = self.download_results().servers_used servers_used = self.download_results().servers_used
if not servers_used: if not servers_used:
return "" return ""
peerids_s = ", ".join(["[%s]" % idlib.shortnodeid_b2a(peerid) peerids_s = ", ".join(["[%s]" % idlib.shortnodeid_b2a(peerid)
for peerid in servers_used]) for peerid in servers_used])
return tags.li("Servers Used: ", peerids_s) return tags.li("Servers Used: ", peerids_s)