Skip to content

Commit fd5851b

Browse files
committed
remove extra var
1 parent 263f76e commit fd5851b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

label_studio/data_export/mixins.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _get_export_serializer_option(serialization_options):
151151
def get_task_queryset(self, ids, annotation_filter_options):
152152
annotations_qs = self._get_filtered_annotations_queryset(annotation_filter_options=annotation_filter_options)
153153

154-
task_queryset = (
154+
return (
155155
Task.objects.filter(id__in=ids)
156156
.select_related('file_upload') # select_related more efficient for regular foreign-key relationship
157157
.prefetch_related(
@@ -162,8 +162,6 @@ def get_task_queryset(self, ids, annotation_filter_options):
162162
)
163163
)
164164

165-
return task_queryset
166-
167165
def get_export_data(self, task_filter_options=None, annotation_filter_options=None, serialization_options=None):
168166
"""
169167
serialization_options: None or Dict({

0 commit comments

Comments
 (0)