Skip to content

Commit

Permalink
mnt: add reverser when sts > ets
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Dec 5, 2023
1 parent 50187ef commit e24d679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgi-bin/request/gis/spc_mcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def application(environ, start_response):
"""Do something fun!"""
if "sts" not in environ:
raise IncompleteWebRequest("GET sts parameter not provided")
if environ["sts"] > environ["ets"]:
environ["sts"], environ["ets"] = environ["ets"], environ["sts"]
ctx = {
"sts": environ["sts"],
"ets": environ["ets"],
Expand Down
2 changes: 2 additions & 0 deletions cgi-bin/request/gis/wpc_mpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def application(environ, start_response):
"""Do something!"""
if "sts" not in environ:
raise IncompleteWebRequest("Missing start time GET params")
if environ["sts"] > environ["ets"]:
environ["sts"], environ["ets"] = environ["ets"], environ["sts"]
common = "at time zone 'UTC', 'YYYYMMDDHH24MI'"
schema = {
"geometry": "Polygon",
Expand Down

0 comments on commit e24d679

Please sign in to comment.