Skip to content

Commit

Permalink
Merge pull request openedx#128 from saraburns1/negative_video_perc
Browse files Browse the repository at this point in the history
fix: Exclude negative percents
  • Loading branch information
saraburns1 authored Oct 23, 2024
2 parents ff18ca9 + 9e6acd3 commit ee5b022
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 205 deletions.
4 changes: 3 additions & 1 deletion models/video/watched_video_duration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ with
and starts.course_key = ends.course_key
and starts.video_id = ends.video_id
and starts.actor_id = ends.actor_id
where starts.emission_time < ends.emission_time
where
starts.emission_time < ends.emission_time
and starts.start_position < ends.end_position
),
range as (select * from range_multi where rownum = 1),
rewatched as (
Expand Down
Loading

0 comments on commit ee5b022

Please sign in to comment.