From 30ceb79f464bc91567bbb949dd4d9c6e48d712ba Mon Sep 17 00:00:00 2001 From: j Date: Tue, 17 Dec 2019 19:37:44 +0200 Subject: [PATCH 1/2] no torrents by default --- pandora/config.pandora.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index c418566f..bd76faa2 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -1274,6 +1274,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "formats": ["webm", "mp4"], "previewRatio": 1.3333333333, "resolutions": [240, 480], - "torrent": true + "torrent": false } } From 4d2dff3afc5cb7d1fdb3b607fa873cff1cfc4bc2 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 18 Dec 2019 16:44:09 +0200 Subject: [PATCH 2/2] fix not in smart list queries --- pandora/item/managers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/item/managers.py b/pandora/item/managers.py index cd185441..be409e5f 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -165,7 +165,10 @@ def parseCondition(condition, user, owner=None): else: q = Q(id__in=l.items.all()) if exclude: - q = ~q + if isinstance(q, list): + q = [~x for x in q] + else: + q = ~q else: q = Q(id=0) return q