Remove incorrect comment (#10652)
This commit is contained in:
parent
0f44d3edf2
commit
52d7671204
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue