From 93124adf1b8131dc1e5d755788923b0e7378b4b3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Sep 2017 21:15:15 +0200 Subject: [PATCH] fix uptime parsing --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index 0abc24b..ab2dcfe 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/")