Skip to content

Commit 84dcbb7

Browse files
committed
Added export format validation
1 parent aff1ac7 commit 84dcbb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def prepare_export(
11901190
:param kwargs:
11911191
Arbitrary kwargs::
11921192
* integration_name: can be provided which will be used as a storage to store export file
1193-
* export_type: can be CSV for the Gen AI projects
1193+
* format: can be CSV for the Gen AI projects
11941194
11951195
:return: metadata object of the prepared export
11961196
:rtype: dict
@@ -1219,8 +1219,8 @@ def prepare_export(
12191219
else:
12201220
raise AppException("Integration not found.")
12211221
_export_type = None
1222-
export_type = kwargs.get("export_type")
1223-
if export_type and export_type == "csv":
1222+
export_type = kwargs.get("format")
1223+
if export_type and export_type.lower() == "csv":
12241224
_export_type = 3
12251225
response = self.controller.prepare_export(
12261226
project_name=project_name,

0 commit comments

Comments
 (0)