From 0885b9db9e264a666cd0fa656442569a953fb7f7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 16 Sep 2021 16:23:42 +0200 Subject: update tags. implement clocks --- load_spreadsheet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'load_spreadsheet.js') 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; -- cgit v1.2.3-70-g09d2