Compare commits

..

2 commits

Author SHA1 Message Date
j
4d2dff3afc fix not in smart list queries 2019-12-18 16:44:09 +02:00
j
30ceb79f46 no torrents by default 2019-12-17 19:37:44 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -1274,6 +1274,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"formats": ["webm", "mp4"], "formats": ["webm", "mp4"],
"previewRatio": 1.3333333333, "previewRatio": 1.3333333333,
"resolutions": [240, 480], "resolutions": [240, 480],
"torrent": true "torrent": false
} }
} }

View file

@ -165,7 +165,10 @@ def parseCondition(condition, user, owner=None):
else: else:
q = Q(id__in=l.items.all()) q = Q(id__in=l.items.all())
if exclude: if exclude:
q = ~q if isinstance(q, list):
q = [~x for x in q]
else:
q = ~q
else: else:
q = Q(id=0) q = Q(id=0)
return q return q