Skip to content

Commit

Permalink
fix: overlap attr added in job detail api
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan220217 committed Nov 27, 2024
1 parent 2c6ed64 commit de6943e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cvat/apps/engine/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ class JobReadSerializer(serializers.ModelSerializer):
target_storage = StorageSerializer(required=False, allow_null=True)
source_storage = StorageSerializer(required=False, allow_null=True)
task_flags = TaskFlagsSerializer(source="segment.task.flags", read_only=True)
overlap = serializers.ReadOnlyField(source="segment.task.overlap")

class Meta:
model = models.Job
Expand All @@ -620,7 +621,7 @@ class Meta:
'start_frame', 'stop_frame', 'data_chunk_size', 'data_compressed_chunk_type',
'created_date', 'updated_date', 'issues', 'labels', 'type', 'organization',
'target_storage', 'source_storage', 'ai_audio_annotation_status',
'ai_audio_annotation_task_id', 'ai_audio_annotation_error_msg', 'task_flags')
'ai_audio_annotation_task_id', 'ai_audio_annotation_error_msg', 'task_flags', 'overlap')
read_only_fields = fields

def to_representation(self, instance):
Expand Down

0 comments on commit de6943e

Please sign in to comment.