forked from 0x2620/pandora
allow rendered find queries, fixes #804
This commit is contained in:
parent
fb6422388d
commit
488e982483
2 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,8 @@ def parseCondition(condition, user):
|
||||||
return Q(id=0)
|
return Q(id=0)
|
||||||
elif k == 'oshash':
|
elif k == 'oshash':
|
||||||
return Q(files__oshash=v)
|
return Q(files__oshash=v)
|
||||||
|
elif k == 'rendered':
|
||||||
|
return Q(rendered=v)
|
||||||
elif k == 'resolution':
|
elif k == 'resolution':
|
||||||
q = parseCondition({'key': 'width', 'value': v[0], 'operator': op}, user) \
|
q = parseCondition({'key': 'width', 'value': v[0], 'operator': op}, user) \
|
||||||
& parseCondition({'key': 'height', 'value': v[1], 'operator': op}, user)
|
& parseCondition({'key': 'height', 'value': v[1], 'operator': op}, user)
|
||||||
|
|
|
@ -685,6 +685,7 @@ class Item(models.Model):
|
||||||
'resolution',
|
'resolution',
|
||||||
'width',
|
'width',
|
||||||
'height',
|
'height',
|
||||||
|
'rendered',
|
||||||
'rightslevel',
|
'rightslevel',
|
||||||
'saturation',
|
'saturation',
|
||||||
'size',
|
'size',
|
||||||
|
|
Loading…
Reference in a new issue