Remove incorrect comment (#10652)

This commit is contained in:
Will Barrett 2020-08-24 10:40:36 -07:00 committed by GitHub
parent 0f44d3edf2
commit 52d7671204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -565,7 +565,7 @@ class ChartRestApi(BaseSupersetModelRestApi):
}
cache_chart_thumbnail.delay(**kwargs)
return self.response(
202, cache_key=cache_key, chart_url=chart_url, image_url=image_url,
202, cache_key=cache_key, chart_url=chart_url, image_url=image_url
)
return trigger_celery()
@ -614,8 +614,6 @@ class ChartRestApi(BaseSupersetModelRestApi):
if not chart:
return self.response_404()
# TODO make sure the user has access to the chart
# fetch the chart screenshot using the current user and cache if set
img = ChartScreenshot.get_from_cache_key(thumbnail_cache, digest)
if img: