aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-01 18:58:46 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-01 18:58:59 +1000
commitec29e5731136c74a1991e2f93b5e233747f2a230 (patch)
tree4f1c5263184c14431a5bd4f972072dc5edbbafd1
parent56125407641ec8c633de7a5ee24cdd28c5221010 (diff)
Fix non-inclusion of canonical-names without english alt-names
Also fix lack of placeholder-image display in tile-info modal.
-rw-r--r--backend/data/README.md2
-rwxr-xr-xbackend/data/genEolNameData.py2
-rw-r--r--src/components/TileInfoModal.vue1
3 files changed, 3 insertions, 2 deletions
diff --git a/backend/data/README.md b/backend/data/README.md
index b4ee77e..e639cb6 100644
--- a/backend/data/README.md
+++ b/backend/data/README.md
@@ -8,7 +8,7 @@ File Generation Process
4 Run genSpellfixNameData.py, which adds a 'spellfix\_alt\_names'
table to data.db, using data in the 'names' table.
5 Use downloadImgsForReview.py to download EOL images into imgsForReview/.
- It uses data in eol/imagesList.db, and the 'nodes' table.
+ It uses data in eol/imagesList.db, and the 'names' table.
6 Use reviewImgs.py to filter images in imgsForReview/ into EOL-id-unique
images in imgsReviewed/ (uses 'names' to display common names).
7 Use genImgsForWeb.py to create cropped/resized images in img/, using
diff --git a/backend/data/genEolNameData.py b/backend/data/genEolNameData.py
index 8cb832d..200b459 100755
--- a/backend/data/genEolNameData.py
+++ b/backend/data/genEolNameData.py
@@ -55,8 +55,8 @@ with open(vnamesFile, newline="") as csvfile:
lang = row[3]
preferred = row[6] == "preferred"
# Add to maps
+ updateMaps(name1, pid, True, False)
if lang == "eng":
- updateMaps(name1, pid, True, False)
updateMaps(name2, pid, False, preferred)
# Open db connection
diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index 4718c88..47ad987 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -22,6 +22,7 @@ export default defineComponent({
'linear-gradient(to bottom, rgba(0,0,0,0.4), #0000 40%, #0000 60%, rgba(0,0,0,0.4) 100%),' +
'url(\'/img/' + this.tolNode.img.filename.replaceAll('\'', '\\\'') + '\')' :
'none',
+ backgroundColor: '#1c1917',
width: this.uiOpts.infoModalImgSz + 'px',
height: this.uiOpts.infoModalImgSz + 'px',
backgroundSize: 'cover',