From c36a7c21c8761bef87b09619dc312f34fe1e50eb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 11 Jan 2016 15:10:46 -0500 Subject: [PATCH] Order sadly matters with this check in peewee --- data/model/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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