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:
parent
f9526a70a0
commit
03d9adbe22
2
main.py
2
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue