Update results renderer

This commit is contained in:
Sajith Sasidharan 2020-05-11 15:09:16 -04:00
parent c5b2073bf0
commit e0241655e5

View File

@ -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