Skip to content

Commit

Permalink
Use unique values from 'derived dataset prefix' column in DV workshee…
Browse files Browse the repository at this point in the history
…t to generate

filenames
  • Loading branch information
ollylucl committed Sep 20, 2024
1 parent 564bde8 commit a080a6b
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 a080a6b

Please sign in to comment.