Skip to content

Commit

Permalink
Merge pull request #52 from CLOSER-Cohorts/issue-50-enforce-checks-on…
Browse files Browse the repository at this point in the history
…-input-spreadsheet-structure

issue-50-enforce-checks-on-input-spreadsheet-structure
  • Loading branch information
ollylucl authored Sep 20, 2024
2 parents 2006139 + a080a6b commit dfd5817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ <h1>Generate text mappings files</h1>
XLSX.utils.sheet_to_json(dvWorksheet, { defval: "" }))

datasetPrefixes = (getUniqueArrayValues(dvWorksheetOrderedByRows.map(
worksheetRow => worksheetRow['source dataset prefix']).filter(datasetPrefixCell =>
worksheetRow => worksheetRow['derived dataset prefix']).filter(datasetPrefixCell =>
(!!datasetPrefixCell
&& !(datasetPrefixCell.toLowerCase().includes("n/a")
|| datasetPrefixCell.toLowerCase().includes("na")
Expand All @@ -298,7 +298,7 @@ <h1>Generate text mappings files</h1>

datasetPrefixes.forEach(datasetPrefix => {
dvLinkURL = createBlobURL(dvWorksheetOrderedByRows.filter(
worksheetRow => worksheetRow['source dataset prefix'] == datasetPrefix), ["derived dataset prefix",
worksheetRow => worksheetRow['derived dataset prefix'] == datasetPrefix), ["derived dataset prefix",
"derived variable name",
"source dataset prefix",
"source variable name"
Expand Down

0 comments on commit dfd5817

Please sign in to comment.