Skip to content

Commit 52a7a9b

Browse files
committed
fixing project type check
1 parent af47368 commit 52a7a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/superannotate/lib/app/analytics/aggregators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ def aggregate_annotations_as_df(self):
209209
constances.ProjectType.PIXEL
210210
):
211211
return self.aggregate_image_annotations_as_df(annotation_paths)
212-
elif self.project_type == constances.ProjectType.VIDEO.name:
212+
elif self.project_type is constances.ProjectType.VIDEO:
213213
return self.aggregate_video_annotations_as_df(annotation_paths)
214-
elif self.project_type == constances.ProjectType.DOCUMENT.name:
214+
elif self.project_type is constances.ProjectType.DOCUMENT:
215215
return self.aggregate_document_annotations_as_df(annotation_paths)
216216

217217

0 commit comments

Comments
 (0)