Merge pull request #62 from kantorkel/firstseen

add firstseen to nodelist.json
respondd
Nils Schneider 2015-07-12 18:44:53 +02:00
commit f2214ab130
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ def export_nodelist(now, nodedb):
node_out["status"] = dict() node_out["status"] = dict()
node_out["status"]["online"] = node["flags"]["online"] node_out["status"]["online"] = node["flags"]["online"]
if "firstseen" in node:
node_out["status"]["firstcontact"] = node["firstseen"]
if "lastseen" in node: if "lastseen" in node:
node_out["status"]["lastcontact"] = node["lastseen"] node_out["status"]["lastcontact"] = node["lastseen"]