From ee84327b5c8347cde7ed1f6538531229a62f0a6d Mon Sep 17 00:00:00 2001 From: kantorkel Date: Mon, 6 Jul 2015 15:26:41 +0200 Subject: [PATCH] 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"]