Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into development-postgres
Browse files Browse the repository at this point in the history
Conflicts:
	pynab/api.py
  • Loading branch information
jamesmeneghello committed Jun 20, 2015
2 parents c2c10cf + bae103a commit 3523811
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pynab/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_nzb(dataset=None):
response.set_header('Content-Disposition', 'attachment; filename="{0}"'
.format(release.search_name.replace(' ', '_') + '.nzb.gz')
)
return data
return gzip.decompress(data)
else:
return api_error(300)
else:
Expand Down Expand Up @@ -148,7 +148,8 @@ def tv_search(dataset=None):
episode = request.query.ep or None

if season or episode:
query = query.join(Episode, Release.episode_id==Episode.id)
release_alias = aliased(Release)
query = query.join(Episode, release_alias)

if season:
# 2014, do nothing
Expand Down

0 comments on commit 3523811

Please sign in to comment.