forked from 0x2620/pandora
more user backend
This commit is contained in:
parent
72d3a8f403
commit
26e9bb90a2
5 changed files with 72 additions and 14 deletions
|
|
@ -20,12 +20,13 @@ def parseCondition(condition, user):
|
|||
'''
|
||||
k = condition.get('key', 'name')
|
||||
k = {
|
||||
'user': 'annotations__user__username',
|
||||
'place': 'annotations__places__id',
|
||||
'event': 'annotations__events__id',
|
||||
'id': 'public_id',
|
||||
'in': 'start',
|
||||
'out': 'end',
|
||||
'id': 'public_id',
|
||||
'place': 'annotations__places__id',
|
||||
'text': 'annotations__value',
|
||||
'user': 'annotations__user__username',
|
||||
}.get(k, k)
|
||||
if not k:
|
||||
k = 'name'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue