mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-29 13:20:48 +08:00
fix lint
This commit is contained in:
1 parent
3d6e69a169
commit
e5e813bdde
1 file changed
+2
-2
@@ -489,9 +489,9 @@ def create_app(
|
||||
writer.writerow(row)
|
||||
|
||||
# Set response headers
|
||||
output_filename = re.sub(r'[\\/:*?"<>|]+', "", summary.study_name)
|
||||
output_name = re.sub(r'[\\/:*?"<>|]+', "", summary.study_name)
|
||||
response.headers["Content-Type"] = "text/csv; chatset=cp932"
|
||||
response.headers["Content-Disposition"] = f"attachment; filename=trials_{output_filename}.csv"
|
||||
response.headers["Content-Disposition"] = f"attachment; filename={output_name}.csv"
|
||||
|
||||
# Response body
|
||||
buf.seek(0)
|
||||
|
||||
Reference in new issue
Block a user