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:
|
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
|
||||||
|
|
Reference in a new issue