From 2f8e1190ca8e9d89a077860292b5366ee87a6be0 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 22 Apr 2016 10:11:10 +0200 Subject: [PATCH] default to last 2 chars of topic for tid closes #120 --- docroot/table/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docroot/table/index.html b/docroot/table/index.html index 235d77e..08ec585 100644 --- a/docroot/table/index.html +++ b/docroot/table/index.html @@ -68,7 +68,7 @@ d['fulldate'] = dt.format("DD MMM YYYY HH:mm:ss"); d['addr'] = d['addr'] || '(' + d['lat'] + ',' + d['lon'] + ')'; d['cc'] = d['cc'] || '__'; - d['tid'] = d['tid'] || '__'; + d['tid'] = d['tid'] || d.topic.substr(d.topic.length - 2, d.topic.length); upsert(d); }