diff --git a/data/model/storage.py b/data/model/storage.py index c90eb1465..5c7ed41dd 100644 --- a/data/model/storage.py +++ b/data/model/storage.py @@ -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