Skip to content

Commit

Permalink
Feat : learning time in course daily log update in case marked as com…
Browse files Browse the repository at this point in the history
…pleted
  • Loading branch information
D-w-nJ committed Nov 21, 2023
1 parent 431287d commit a6bac6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/m9d/sroom/course/vo/CourseVideo.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public VideoCompletionStatus getCompletionStatus(int viewDuration, int videoDura
if (isMarkedAsCompleted) {
status.setTimeGap(videoDuration - maxDuration);
status.setViewDuration(videoDuration - 1);
status.setRewound(false);
} else {
status.setTimeGap(Math.max(viewDuration - maxDuration, 0));
status.setViewDuration(viewDuration);
Expand Down

0 comments on commit a6bac6d

Please sign in to comment.