@@ -46,6 +46,7 @@ def __init__(
4646 only_pinned : bool ,
4747 annotation_statuses : List [str ] = None ,
4848 integration_id : int = None ,
49+ export_type : int = None ,
4950 ):
5051 super ().__init__ (),
5152 self ._project = project
@@ -55,6 +56,7 @@ def __init__(
5556 self ._include_fuse = include_fuse
5657 self ._only_pinned = only_pinned
5758 self ._integration_id = integration_id
59+ self ._export_type = export_type
5860
5961 def validate_only_pinned (self ):
6062 if (
@@ -102,15 +104,17 @@ def execute(self):
102104 constances .AnnotationStatus .NOT_STARTED .name ,
103105 constances .AnnotationStatus .SKIPPED .name ,
104106 ]
105-
106- response = self ._service_provider .prepare_export (
107+ kwargs = dict (
107108 project = self ._project ,
108109 folders = self ._folder_names ,
109110 annotation_statuses = self ._annotation_statuses ,
110111 include_fuse = self ._include_fuse ,
111112 only_pinned = self ._only_pinned ,
112113 integration_id = self ._integration_id ,
113114 )
115+ if self ._export_type :
116+ kwargs ["export_type" ] = self ._export_type
117+ response = self ._service_provider .prepare_export (** kwargs )
114118 if not response .ok :
115119 raise AppException (response .error )
116120
0 commit comments