Order sadly matters with this check in peewee
This commit is contained in:
parent
b0d700decd
commit
c36a7c21c8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue