Merge pull request #1134 from coreos-inc/fixtorrentstorage

Order sadly matters with this check in peewee
This commit is contained in:
josephschorr 2016-01-11 15:13:11 -05:00
commit 8bc8e2acc0

View file

@ -255,7 +255,7 @@ def get_torrent_info(blob):
try: try:
return (TorrentInfo return (TorrentInfo
.select() .select()
.where(blob == TorrentInfo.storage) .where(TorrentInfo.storage == blob)
.get()) .get())
except TorrentInfo.DoesNotExist: except TorrentInfo.DoesNotExist:
raise TorrentInfoDoesNotExist raise TorrentInfoDoesNotExist