when=now search added
This commit is contained in:
parent
65ac5dec59
commit
b6dbe874d1
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ class EventResource(BaseEvent):
|
|||
if 'when' in req.params:
|
||||
# limit search with fixed time
|
||||
when = req.params['when']
|
||||
if when == 'NOW':
|
||||
event_when = "tstzrange(now(),now(),'[]')"
|
||||
if when == 'TODAY':
|
||||
event_when = "tstzrange(CURRENT_DATE,CURRENT_DATE + INTERVAL '1 DAY','[]')"
|
||||
elif when == 'TOMORROW':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue