From ee84327b5c8347cde7ed1f6538531229a62f0a6d Mon Sep 17 00:00:00 2001 From: kantorkel Date: Mon, 6 Jul 2015 15:26:41 +0200 Subject: [PATCH 1/2] add firstseen to nodelist.json --- lib/nodelist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nodelist.py b/lib/nodelist.py index 15aea63..7048dfc 100644 --- a/lib/nodelist.py +++ b/lib/nodelist.py @@ -13,6 +13,9 @@ def export_nodelist(now, nodedb): node_out["status"] = dict() node_out["status"]["online"] = node["flags"]["online"] + if "firstseen" in node: + node_out["status"]["firstcontact"] = node["firstseen"] + if "lastseen" in node: node_out["status"]["lastcontact"] = node["lastseen"] From c5b321430e3ede0a85b5a8ba276863db187e0a82 Mon Sep 17 00:00:00 2001 From: kantorkel Date: Sun, 12 Jul 2015 18:08:17 +0200 Subject: [PATCH 2/2] fixed 'blank line contains whitespace' lib/nodelist.py:18:1: W293 blank line contains whitespace. fixed. --- lib/nodelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodelist.py b/lib/nodelist.py index 7048dfc..a931dcf 100644 --- a/lib/nodelist.py +++ b/lib/nodelist.py @@ -15,7 +15,7 @@ def export_nodelist(now, nodedb): if "firstseen" in node: node_out["status"]["firstcontact"] = node["firstseen"] - + if "lastseen" in node: node_out["status"]["lastcontact"] = node["lastseen"]