mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 16:02:43 +00:00
Update results renderer
This commit is contained in:
parent
c5b2073bf0
commit
e0241655e5
@ -694,11 +694,12 @@ class DownloadStatusElement(Element, DownloadResultsRendererMixin):
|
||||
|
||||
return l
|
||||
|
||||
def render_results(self, ctx, data):
|
||||
@renderer
|
||||
def results(self, req, tag):
|
||||
d = self.download_results()
|
||||
def _got_results(results):
|
||||
if results:
|
||||
return ctx.tag
|
||||
return tag
|
||||
return ""
|
||||
d.addCallback(_got_results)
|
||||
return d
|
||||
|
Loading…
Reference in New Issue
Block a user