@@ -71,7 +71,7 @@ async def get_configuration_export(
7171 zip_package = ZipFilePackage (
7272 name = _build_export_filename (
7373 filename = "Configuration_Export" ,
74- type = "zip" ,
74+ extension = "zip" ,
7575 config_name = config .name ,
7676 config_version = config .version ,
7777 timestamp = timestamp ,
@@ -82,7 +82,7 @@ async def get_configuration_export(
8282 ZipFileItem (
8383 file_name = _build_export_filename (
8484 filename = "Code_Export" ,
85- type = "csv" ,
85+ extension = "csv" ,
8686 config_name = config .name ,
8787 config_version = config .version ,
8888 timestamp = timestamp ,
@@ -95,7 +95,7 @@ async def get_configuration_export(
9595 ZipFileItem (
9696 file_name = _build_export_filename (
9797 filename = "Section_Export" ,
98- type = "csv" ,
98+ extension = "csv" ,
9999 config_name = config .name ,
100100 config_version = config .version ,
101101 timestamp = timestamp ,
@@ -230,11 +230,11 @@ def _get_timestamp() -> str:
230230
231231def _build_export_filename (
232232 filename : str ,
233- type : Literal ["csv" , "zip" ],
233+ extension : Literal ["csv" , "zip" ],
234234 config_name : str ,
235235 config_version : int ,
236236 timestamp : str ,
237237) -> str :
238238 """Build a timestamped filename for a configuration export."""
239239 condition_grouper = config_name .replace (" " , "_" )
240- return f"{ condition_grouper } _v{ config_version } _{ filename } _{ timestamp } .{ type } "
240+ return f"{ condition_grouper } _v{ config_version } _{ filename } _{ timestamp } .{ extension } "
0 commit comments