Skip to content

Commit

Permalink
VID-683: Correct field name
Browse files Browse the repository at this point in the history
  • Loading branch information
dthies committed Sep 2, 2023
1 parent e2070e8 commit adcb2b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ public function get_fields(): array {
if (videotime_has_repository()) {
$addfields = [
new field('watched_time', new lang_string('watchedtime', 'videotime'), $this, 'MAX(
CASE WHEN vtn.current_watch_time - vtn.start > 1 THEN vtn.current_watch_time ELSE 0 END
CASE WHEN vtn.current_watch_time - vtn.start_time > 1 THEN vtn.current_watch_time ELSE 0 END
)', [
new time_attribute()
]),
new field('time_left', new lang_string('timeleft', 'videotime'), $this, 'MIN(
CASE WHEN vtn.current_watch_time - vtn.start > 1
CASE WHEN vtn.current_watch_time - vtn.start_time > 1
THEN vvv.duration - vtn.current_watch_time
ELSE vvv.duration
END
Expand Down

0 comments on commit adcb2b8

Please sign in to comment.