Add 'since' parameter

This commit is contained in:
Klaus-Uwe Mitterer 2018-01-20 21:04:05 +01:00
parent d5965d9c50
commit 7434fe5e87
1 changed files with 3 additions and 2 deletions

View File

@ -225,8 +225,9 @@ def application(env, re):
return
on = args["on"][0] if "on" in args else None
frm = on if on else args["from"][0] if "from" in args else None
to = on if on else args["to"][0] if "to" in args else None
since = args["since"][0] if "since" 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"]:
builder = buildGJSON