Compare commits
2 commits
5168ed4a33
...
4d2dff3afc
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d2dff3afc | |||
| 30ceb79f46 |
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue