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"],
"previewRatio": 1.3333333333,
"resolutions": [240, 480],
"torrent": true
"torrent": false
}
}

View file

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