Skip to content

Commit

Permalink
fix: remove end before start cases
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Oct 23, 2024
1 parent ff18ca9 commit 9e6acd3
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 9e6acd3

Please sign in to comment.