Use render_GET()

Implementing `render_METHOD()` is preferred over overriding render()
This commit is contained in:
Sajith Sasidharan 2020-06-23 18:07:27 -04:00
parent b14c0a0495
commit 36ecd8f384

View File

@ -377,7 +377,7 @@ class DownloadStatusPage(Resource):
self._download_status = download_status self._download_status = download_status
self.putChild("event_json", _EventJson(self._download_status)) self.putChild("event_json", _EventJson(self._download_status))
def render_HTML(self, req): def render_GET(self, req):
elem = DownloadStatusElement(self._download_status) elem = DownloadStatusElement(self._download_status)
return renderElement(req, elem) return renderElement(req, elem)