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:
return (TorrentInfo
.select()
.where(blob == TorrentInfo.storage)
.where(TorrentInfo.storage == blob)
.get())
except TorrentInfo.DoesNotExist:
raise TorrentInfoDoesNotExist