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