File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 7272
7373.. _ref_search_images :
7474.. autofunction :: superannotate.search_images
75+ .. autofunction :: superannotate.search_images_all_folders
7576.. autofunction :: superannotate.get_image_metadata
7677.. autofunction :: superannotate.download_image
7778.. autofunction :: superannotate.set_image_annotation_status
Original file line number Diff line number Diff line change @@ -293,7 +293,10 @@ def search_images(
293293 raise AppException (response .errors )
294294
295295 if return_metadata :
296- return [ImageSerializer (image ).serialize_by_project (project ) for image in response .data ]
296+ return [
297+ ImageSerializer (image ).serialize_by_project (project )
298+ for image in response .data
299+ ]
297300 return [image .name for image in response .data ]
298301
299302
@@ -2582,7 +2585,8 @@ def search_images_all_folders(
25822585 )
25832586 if return_metadata :
25842587 return [
2585- ImageSerializer (image ).serialize_by_project (project = project_entity ) for image in res .data
2588+ ImageSerializer (image ).serialize_by_project (project = project_entity )
2589+ for image in res .data
25862590 ]
25872591 return [image .name for image in res .data ]
25882592
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ def serialize(self):
5858 )
5959 return data
6060
61-
6261 def serialize_by_project (self , project : ProjectEntity ):
6362 data = super ().serialize ()
6463 data = {
Original file line number Diff line number Diff line change @@ -303,7 +303,6 @@ def from_dict(**kwargs):
303303 del kwargs ["updatedAt" ]
304304 return ImageEntity (** kwargs )
305305
306-
307306 def to_dict (self ):
308307 data = {
309308 "id" : self .uuid ,
You can’t perform that action at this time.
0 commit comments