From 53d2000863e39746dc37084ba9853c2fd5a48b54 Mon Sep 17 00:00:00 2001 From: Maikel de Boer Date: Mon, 30 Oct 2017 13:17:23 +0100 Subject: [PATCH] fixed SUMMARY_RE_MATCH to work with uptime longer then a day. --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index ab2dcfe..e3b9684 100644 --- a/lg.py +++ b/lg.py @@ -223,7 +223,7 @@ def whois(): SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device"] -SUMMARY_RE_MATCH = r"(?P[\w_]+)\s+(?P\w+)\s+(?P\w+)\s+(?P\w+)\s+(?P((|\d\d\d\d-\d\d-\d\d\s)(|\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P.*))" +SUMMARY_RE_MATCH = r"(?P[\w_]+)\s+(?P\w+)\s+(?P
\w+)\s+(?P\w+)\s+(?P((|\d\d\d\d-\d\d-\d\d\s)|(\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P.*))" @app.route("/summary/")