From 380016154f5049460f5221fc1eec655d3e868622 Mon Sep 17 00:00:00 2001 From: booo Date: Sun, 13 Feb 2011 12:00:08 +0100 Subject: handle tags with new node-postgres module; xml escaping still broken --- src/nodejs/main.js | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'src/nodejs') diff --git a/src/nodejs/main.js b/src/nodejs/main.js index 96d1043..faa7e12 100644 --- a/src/nodejs/main.js +++ b/src/nodejs/main.js @@ -43,21 +43,18 @@ function rowToNode(row){ 'lat' : row.lat, 'lon' : row.lon }; - - if(row.tags != '{}') { - node.tags = []; - temp = row.tags.replace("{","").replace("}","").split(","); - for(var x=0;x