Skip to content

Commit

Permalink
black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Aug 23, 2023
1 parent c5d6cd2 commit e2db1bc
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions backend/workspaces/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,9 @@ def project_analytics(self, request, pk=None):
for each_task in labeled_tasks:
try:
annotate_annotation = Annotation.objects.filter(
task=each_task, annotation_type=ANNOTATOR_ANNOTATION, annotation_status__in=["labeled"]
task=each_task,
annotation_type=ANNOTATOR_ANNOTATION,
annotation_status__in=["labeled"],
)[0]
total_duration_annotated_count_list.append(
get_audio_transcription_duration(
Expand All @@ -1282,8 +1284,13 @@ def project_analytics(self, request, pk=None):
for each_task in reviewed_tasks:
try:
review_annotation = Annotation.objects.filter(
task=each_task, annotation_type=REVIEWER_ANNOTATION, annotation_status__in=["accepted", "accepted_with_minor_changes", "accepted_with_major_changes"]
)[0
task=each_task,
annotation_type=REVIEWER_ANNOTATION,
annotation_status__in=[
"accepted",
"accepted_with_minor_changes",
"accepted_with_major_changes",
],
)[0]
total_duration_reviewed_count_list.append(
get_audio_transcription_duration(
Expand Down Expand Up @@ -1312,8 +1319,12 @@ def project_analytics(self, request, pk=None):
for each_task in superchecked_tasks:
try:
supercheck_annotation = Annotation.objects.filter(
task=each_task, annotation_type=SUPER_CHECKER_ANNOTATION, annotation_status__in=["validated", "validated_with_changes"]
)[0
task=each_task,
annotation_type=SUPER_CHECKER_ANNOTATION,
annotation_status__in=[
"validated",
"validated_with_changes",
],
)[0]
total_duration_superchecked_count_list.append(
get_audio_transcription_duration(
Expand Down

0 comments on commit e2db1bc

Please sign in to comment.