完成播放接口修改
This commit is contained in:
parent
fc79e0b782
commit
aa2c4d8d10
|
|
@ -204,7 +204,6 @@ class ViewItemViewSet(ListModelMixin, UpdateModelMixin, GenericViewSet):
|
||||||
完成播放
|
完成播放
|
||||||
"""
|
"""
|
||||||
obj = self.get_object()
|
obj = self.get_object()
|
||||||
obj.current = 0
|
|
||||||
v2 = View2.objects.get(video=obj.video, create_by=obj.create_by)
|
v2 = View2.objects.get(video=obj.video, create_by=obj.create_by)
|
||||||
if v2.total_seconds >= obj.video.duration * 0.6:
|
if v2.total_seconds >= obj.video.duration * 0.6:
|
||||||
v2.is_completed = True
|
v2.is_completed = True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue