Add 'since' parameter
This commit is contained in:
parent
d5965d9c50
commit
7434fe5e87
1 changed files with 3 additions and 2 deletions
5
main.py
5
main.py
|
@ -225,8 +225,9 @@ def application(env, re):
|
||||||
return
|
return
|
||||||
|
|
||||||
on = args["on"][0] if "on" in args else None
|
on = args["on"][0] if "on" in args else None
|
||||||
frm = on if on else args["from"][0] if "from" in args else None
|
since = args["since"][0] if "since" in args else None
|
||||||
to = on if on else args["to"][0] if "to" in args else None
|
frm = since if since else on if on else args["from"][0] if "from" in args else None
|
||||||
|
to = None if since else on if on else args["to"][0] if "to" in args else None
|
||||||
|
|
||||||
if not "format" in args or args["format"][0] in ("json", "gjson", "geojson", "gj") or not args["format"]:
|
if not "format" in args or args["format"][0] in ("json", "gjson", "geojson", "gj") or not args["format"]:
|
||||||
builder = buildGJSON
|
builder = buildGJSON
|
||||||
|
|
Loading…
Reference in a new issue