diff options
Diffstat (limited to 'load_spreadsheet.js')
| -rw-r--r-- | load_spreadsheet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/load_spreadsheet.js b/load_spreadsheet.js index a7f1793..689b9d8 100644 --- a/load_spreadsheet.js +++ b/load_spreadsheet.js @@ -11,7 +11,7 @@ import sizeOf from "image-size"; const datasheetFile = "./data_store/tags.csv"; const dbFile = "./db.json"; -var tagTypes = "No6092,1620s,painting,blunt,National Gallery of Canada,AGO,courtauld,intervensions,connsoeurship,double agent,forensics,black box,Stankievech".split( +var categories = "1620s,painting,blunt,National Gallery of Canada,Art Gallery of Ontario,Courtauld Institute,Stankievech,connsoeurship,double agent,forensics,black box".split( "," ); @@ -46,7 +46,7 @@ async function main() { }; // loop over the tags... let tagIndex = 0; - tagTypes.forEach((type, tagId) => { + categories.forEach((type, tagId) => { if (row[type] === "x") { record["tag_" + tagIndex] = tagId + 1; tagIndex += 1; |
