未验证 提交 37ef30b9 编写于 作者: B Boris Sekachev 提交者: GitHub

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

* Fixed issue with deleted frames in a multijob task

* Updated changelog
上级 ad4635e0
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册