mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-12 12:40:33 +08:00
Update optuna_dashboard/_app.py
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
This commit is contained in:
co-authored by
Shuhei Watanabe
parent
f57bab2d7d
commit
c9915ad12d
@@ -487,7 +487,7 @@ def create_app(
|
||||
writer.writerow(row)
|
||||
|
||||
# Set response headers
|
||||
output_name = re.sub(r'[\\/:*?"<>|]+', "", study_name)
|
||||
output_name = "-".join(re.sub(r'[\\/:*?"<>|]+', "", study_name).split(" "))
|
||||
response.headers["Content-Type"] = "text/csv; chatset=cp932"
|
||||
response.headers["Content-Disposition"] = f"attachment; filename={output_name}.csv"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user