From 576693b00aa2be6ab4d2e9a24f3b6ffca627a304 Mon Sep 17 00:00:00 2001 From: ikoamu Date: Tue, 2 Apr 2024 17:53:03 +0900 Subject: Modified to convert olp to array --- generate_json.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generate_json.js b/generate_json.js index fd20ae4..9649443 100644 --- a/generate_json.js +++ b/generate_json.js @@ -91,8 +91,10 @@ db.all(queryNodes, (_, nodes) => db.all(queryTags, (_, tags) => { graphdata.data.nodes = nodes.map(node => { const splitTags = node.tags?.split(',') ?? [null]; + const olp = node.olp?.replace(/\(\"|\"\)/g, '').split(' ') ?? null; return{ ...node, + olp, tags: splitTags, file: getFilename(node.file), properties: parseProperties(node.properties), -- cgit