aboutsummaryrefslogtreecommitdiff
path: root/backend/data/trimTree.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-15 17:14:28 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-15 17:14:28 +1000
commit3402f3d6e906afb500b95448d7d0b136b6b5ee86 (patch)
treeced939ea9a2ef9c798bb624a0a809b94ff117192 /backend/data/trimTree.py
parentfd0cb82ddd065a0a8966b67f98a151adfbab4bc3 (diff)
Adjust 'node_imgs' table to use node name, not id
Diffstat (limited to 'backend/data/trimTree.py')
-rwxr-xr-xbackend/data/trimTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/data/trimTree.py b/backend/data/trimTree.py
index 1291c14..3c98ae8 100755
--- a/backend/data/trimTree.py
+++ b/backend/data/trimTree.py
@@ -24,7 +24,7 @@ print("\tFinding nodes with descs")
for (name,) in dbCur.execute("SELECT name FROM descs"):
nodesToKeep.add(name)
print("\tFinding nodes with images")
-for (name,) in dbCur.execute("SELECT name FROM nodes INNER JOIN node_imgs ON nodes.id = node_imgs.id"):
+for (name,) in dbCur.execute("SELECT name FROM node_imgs"):
nodesToKeep.add(name)
print("\tFinding nodes in reduced-tree")
for (name,) in dbCur.execute("SELECT name from r_nodes"):