aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pl/track_episodes.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/pl/track_episodes.pl b/pl/track_episodes.pl
index ec1785b..f18e85c 100644
--- a/pl/track_episodes.pl
+++ b/pl/track_episodes.pl
@@ -90,7 +90,7 @@ toggle_episode(Ep) :-
most_recently_watched(Ep) :-
findall(N, episode_watched(N, true), All),
- sort(0, @>, All, [Ep|_]).
+ last(All, Ep).
watched(Ep) :-
episode_watched(Ep, true).