From b462698a06822878b7033bae6b7a682a42241936 Mon Sep 17 00:00:00 2001 From: Breck Yunits Date: Mon, 9 Sep 2024 04:13:58 -1000 Subject: [PATCH] --- pages/explore.scroll | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pages/explore.scroll b/pages/explore.scroll index 9c51c11d18..af07f9543a 100644 --- a/pages/explore.scroll +++ b/pages/explore.scroll @@ -1,13 +1,3 @@ -replaceNodejs - const lodash = require("lodash") - const data = lodash.chain(require("../cancerdb.json")) - .orderBy(['measurements'], ['desc']) - .map(row => lodash.pick(row, "id measurements type tissue mainType wikipedia website country description appeared twitter".split(" "))) - .value() - const header = lodash.keys(data[0]).join(','); - const rows = lodash.map(data, row => lodash.values(row).join(',')); - const csv = [header, ...rows].join('\n '); - module.exports = {ALL : 'table\n printTable\n delimiter ,\n data\n ' + csv} tags index title Explore CancerDB @@ -18,7 +8,10 @@ printTitle endSnippet -ALL +table ../cancerdb.json + orderBy -measurements + select id measurements type wikipedia website + printTable