names
This commit is contained in:
parent
a0c49f7344
commit
c0d654b141
4 changed files with 34 additions and 16 deletions
|
|
@ -89,7 +89,7 @@ def removeEvent(request):
|
|||
actions.register(removeEvent, cache=False)
|
||||
|
||||
|
||||
def findEvent(request):
|
||||
def findEvents(request):
|
||||
'''
|
||||
param data
|
||||
{'query': query, 'sort': array, 'range': array}
|
||||
|
|
@ -128,4 +128,4 @@ Positions
|
|||
for p in models.Event.objects.find(data['query']):
|
||||
response['data']['events'].append(p.json())
|
||||
return render_to_json_response(response)
|
||||
actions.register(findEvent)
|
||||
actions.register(findEvents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue