aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodejs/main.js
diff options
context:
space:
mode:
authorslomo <steve.harrison@gmx.net>2011-01-22 13:44:34 +0100
committerslomo <steve.harrison@gmx.net>2011-01-22 13:44:34 +0100
commitdd99a3158caa9c8fb31c7d6c9c0f6536376e2459 (patch)
treead4fdb0a8cf21ff1d30a5267043797b8636191ba /src/nodejs/main.js
parent1a37a20fd94a60ce686a6f1e11534b504b2e2308 (diff)
downloadosm-xapi-dd99a3158caa9c8fb31c7d6c9c0f6536376e2459.tar.gz
osm-xapi-dd99a3158caa9c8fb31c7d6c9c0f6536376e2459.tar.xz
osm-xapi-dd99a3158caa9c8fb31c7d6c9c0f6536376e2459.zip
added tag support
Diffstat (limited to 'src/nodejs/main.js')
-rw-r--r--src/nodejs/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nodejs/main.js b/src/nodejs/main.js
index 2c4cb26..49a36f5 100644
--- a/src/nodejs/main.js
+++ b/src/nodejs/main.js
@@ -48,12 +48,11 @@ function rowToNode(row){
if(row.tags != '{}') {
node.tags = [];
- // FIXME: something doesnt work at all
temp = row.tags.replace("{","").replace("}","").split(",");
for(var x=0;x<temp.length;x=x+2){
node.tags.push({
- 'k' : temp[x],
- 'v' : temp[x+1]
+ 'key' : temp[x],
+ 'value' : temp[x+1]
});
}
}