diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/data/README.md | 2 | ||||
| -rwxr-xr-x | backend/data/genEolNameData.py | 2 |
2 files changed, 2 insertions, 2 deletions
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: |
