Add a note about rendering download events tables

This commit is contained in:
Sajith Sasidharan 2020-05-14 12:50:17 -04:00
parent b02cfa5bbe
commit f3edc8a48c

View File

@ -540,6 +540,9 @@ class DownloadStatusElement(Element, DownloadResultsRendererMixin):
return tags.span(time_s, title=rate) return tags.span(time_s, title=rate)
return tags.span(time_s) return tags.span(time_s)
# XXX: This method is a candidate for refactoring. It renders
# four tables from this function. Layout part of those tables
# could be moved to download-status.xhtml.
@renderer @renderer
def events(self, req, tag): def events(self, req, tag):
if not self._download_status.storage_index: if not self._download_status.storage_index: