Fixed issue with deleted frames in a multijob task (#5138)

* Fixed issue with deleted frames in a multijob task

* Updated changelog
main
Boris Sekachev 3 years ago committed by GitHub
parent ad4635e020
commit 37ef30b963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,6 +49,8 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
- Fixed bug of computing Job's unsolved/resolved issues numbers (<https://github.com/opencv/cvat/pull/5101>)
- Dataset export for job (<https://github.com/opencv/cvat/pull/5052>)
- Restoring CVAT in case of React-renderning fail (<https://github.com/opencv/cvat/pull/5134>)
- Deleted frames become restored if a user deletes frames from another job of the same task
(<https://github.com/opencv/cvat/pull/5138>)
### Security
- TDB

@ -1617,7 +1617,7 @@ class JobViewSet(viewsets.GenericViewSet, mixins.ListModelMixin,
lambda frame: frame >= start_frame and frame <= stop_frame,
serializer.validated_data['deleted_frames']
)) + list(filter(
lambda frame: frame < start_frame and frame > stop_frame,
lambda frame: frame < start_frame or frame > stop_frame,
db_data.deleted_frames,
))
db_data = serializer.save()

Loading…
Cancel
Save