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)
|
||||
elif k == 'oshash':
|
||||
return Q(files__oshash=v)
|
||||
elif k == 'rendered':
|
||||
return Q(rendered=v)
|
||||
elif k == 'resolution':
|
||||
q = parseCondition({'key': 'width', 'value': v[0], 'operator': op}, user) \
|
||||
& parseCondition({'key': 'height', 'value': v[1], 'operator': op}, user)
|
||||
|
|
|
@ -685,6 +685,7 @@ class Item(models.Model):
|
|||
'resolution',
|
||||
'width',
|
||||
'height',
|
||||
'rendered',
|
||||
'rightslevel',
|
||||
'saturation',
|
||||
'size',
|
||||
|
|
Loading…
Reference in a new issue