From 5f8c7e12b6978e50850b434efbdf4062a4284979 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 6 May 2022 23:32:02 +1000 Subject: Fix typo in data entry code --- backend/data/README.md | 2 +- backend/data/genEolNameData.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/data/README.md b/backend/data/README.md index 15adb96..329de09 100644 --- a/backend/data/README.md +++ b/backend/data/README.md @@ -13,7 +13,7 @@ File Generation Process table to data.db, using data in the 'names' table. 3 Image Data 1 Use downloadImgsForReview.py to download EOL images into imgsForReview/. - It uses data in eol/imagesList.db, and the 'eol_ids' table. + It uses data in eol/imagesList.db, and the 'eol\_ids' table. 2 Use reviewImgs.py to filter images in imgsForReview/ into EOL-id-unique images in imgsReviewed/ (uses 'names' and 'eol_ids' to display extra info). 3 Use genImgsForWeb.py to create cropped/resized images in img/, using diff --git a/backend/data/genEolNameData.py b/backend/data/genEolNameData.py index 74d9329..7f7e499 100755 --- a/backend/data/genEolNameData.py +++ b/backend/data/genEolNameData.py @@ -110,7 +110,7 @@ for name in unresolvedNodeNames: usedPids.add(pidToUse) altNames = {name} preferredName = pidToPreferred[pidToUse] if (pidToUse in pidToPreferred) else None - dbCur.execute("INSERT INTO eol_ids VALUES (?, ?)", (name, pidToUse)) + dbCur.execute("INSERT INTO eol_ids VALUES (?, ?)", (pidToUse, name)) for n in pidToNames[pidToUse]: altNames.add(n) for n in altNames: -- cgit v1.2.3