From 6c67f1415ecd3a8ba568f73059cc518d95182d75 Mon Sep 17 00:00:00 2001 From: Joakim Ek Date: Mon, 25 May 2015 23:28:28 +0200 Subject: [PATCH] Fix for postgres 9.4 --- pynab/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pynab/api.py b/pynab/api.py index 0b5ae43..2fa6c3d 100644 --- a/pynab/api.py +++ b/pynab/api.py @@ -148,7 +148,8 @@ def tv_search(dataset=None): episode = request.query.ep or None if season or episode: - query = query.join(Episode, Release) + release_alias = aliased(Release) + query = query.join(Episode, release_alias) if season: # 2014, do nothing