mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix: methods incorrect type and update deprecated targets (#23935)
This commit is contained in:
committed by
GitHub
parent
841726d432
commit
694f93326d
@@ -531,7 +531,7 @@ class BaseSupersetModelRestApi(ModelRestApi, BaseSupersetApiMixin):
|
||||
self.send_stats_metrics(response, self.delete.__name__, duration)
|
||||
return response
|
||||
|
||||
@expose("/related/<column_name>", methods=["GET"])
|
||||
@expose("/related/<column_name>", methods=("GET",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
@@ -610,7 +610,7 @@ class BaseSupersetModelRestApi(ModelRestApi, BaseSupersetApiMixin):
|
||||
|
||||
return self.response(200, count=total_rows, result=result)
|
||||
|
||||
@expose("/distinct/<column_name>", methods=["GET"])
|
||||
@expose("/distinct/<column_name>", methods=("GET",))
|
||||
@protect()
|
||||
@safe
|
||||
@statsd_metrics
|
||||
|
||||
Reference in New Issue
Block a user