Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Nov 21, 2024
1 parent 80a3ea9 commit 99ed39f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/video/watched_video_duration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ with
starts.emission_time as start_emission_time,
ends.emission_time as end_emission_time
from starts
inner join ends on starts.event_id = ends.matching_event_id
inner join ends on starts.end_id = ends.event_id
where ends.video_position > starts.video_position
),
rewatched as (
Expand All @@ -83,7 +83,7 @@ with
a.object_id,
a.video_duration,
max(a.end_position) - min(a.start_position) as watched_time,
min(b.end_position) - max(b.start_position) as rewatched_time
max(b.end_position) - min(b.start_position) as rewatched_time
from range a
inner join
range b
Expand Down

0 comments on commit 99ed39f

Please sign in to comment.