From 03d9adbe22a2d1f44c15c74d75c870efec0b4075 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 26 Sep 2017 13:03:19 +0200 Subject: [PATCH] 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. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 6159789..cf0a82a 100644 --- a/main.py +++ b/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