Details view may time out if connection count is 3, so the default connection count is set to 1 for HTTP requests. Other requests still default to 3.

This commit is contained in:
Klaus-Uwe Mitterer 2017-09-26 13:03:19 +02:00
parent f9526a70a0
commit 03d9adbe22

View file

@ -39,7 +39,7 @@ def application(env, re):
yield "\"from\" and \"to\" values are required for this type of request.".encode()
return
count = args["count"][0] if "count" in args and args["count"] else 3
count = args["count"][0] if "count" in args and args["count"] else 1
date = args["date"][0] if "date" in args and args["date"] else datetime.datetime.strftime(datetime.datetime.now(pytz.timezone("Europe/Vienna")),"%d.%m.%Y")
time = args["time"][0] if "time" in args and args["time"] else datetime.datetime.strftime(datetime.datetime.now(pytz.timezone("Europe/Vienna")),"%H:%M")
mode = True if "mode" in args and args["mode"] and args["mode"][0].lower() == "arr" else False