瀏覽代碼

Update 'src/app/core/parser/file-parser.js'

Some fixes to allow the MidPoint creation through GEO file with the correct ID
(e.g. one with "1:3" was been created with ID=1)
Only added helpfull comments
leo 2 年之前
父節點
當前提交
06469aa7d8
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/app/core/parser/file-parser.js

+ 4 - 3
src/app/core/parser/file-parser.js

@@ -68,10 +68,11 @@ export class FileParser {
           console.log("file-parser.js!parse(): error " + error + " in: " + str);
           }
         });
-    var aux1 = ""; try { aux1 = JSON.stringify(Object.keys(parsed_result)) + " "; } catch (error) { aux1 = "error " + error + " "; }
+    // var aux1 = ""; try { aux1 = JSON.stringify(Object.keys(parsed_result)) + " "; } catch (error) { aux1 = "error " + error + " "; }
+    var aux1 = ""; try { aux1 = parsed_result + " "; } catch (error) { aux1 = "error " + error + " "; }
     var aux2 = ""; try { var tam = vec_OD.length; for (var ii=0; ii<tam; ii++) aux2 += "[" + vec_OD[ii].id + ":" + vec_OD[ii].obj + "],"; } catch (error) { aux2 += "error " + error + " "; }
-    console.log("file-parser.js!parse(): " + aux1); //D
-    console.log("file-parser.js!parse(): " + aux2 + "\n* final"); //D
+    console.log("file-parser.js!parse(): parsed_result=" + aux1); //D
+    console.log("file-parser.js!parse(): vec_OD[]=" + aux2 + "\n* final"); //D
     return parsed_result;
     } // parse(vec_OD)