From 7a3eaa8da9fd0b44852d331f25b38f170bd65768 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:51:46 +1000 Subject: [PATCH] feat(api): save file as `prompt_templates.csv` --- invokeai/app/api/routers/style_presets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invokeai/app/api/routers/style_presets.py b/invokeai/app/api/routers/style_presets.py index aa0296507c..0f4967cc63 100644 --- a/invokeai/app/api/routers/style_presets.py +++ b/invokeai/app/api/routers/style_presets.py @@ -254,7 +254,9 @@ async def export_style_presets(): output.close() return Response( - content=csv_data, media_type="text/csv", headers={"Content-Disposition": "attachment; filename=data.csv"} + content=csv_data, + media_type="text/csv", + headers={"Content-Disposition": "attachment; filename=prompt_templates.csv"}, )