Compare commits

...
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -1084,6 +1084,7 @@ class ChartRestApi(SoftDeleteApiMixin, BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)
+1
View File
@@ -1478,6 +1478,7 @@ class DashboardRestApi(
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)
+1
View File
@@ -747,6 +747,7 @@ class DatasetRestApi(SoftDeleteApiMixin, BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)
+1
View File
@@ -89,6 +89,7 @@ class ImportExportRestApi(BaseSupersetApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
return response
+1
View File
@@ -312,6 +312,7 @@ class SavedQueryRestApi(BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)
+1
View File
@@ -489,6 +489,7 @@ class ThemeRestApi(BaseSupersetModelRestApi):
mimetype="application/zip",
as_attachment=True,
download_name=filename,
max_age=0,
)
if token := sanitize_cookie_token(request.args.get("token")):
response.set_cookie(token, "done", max_age=600)