diff options
| -rwxr-xr-x | backend/data/genReducedTreeData.py | 4 | ||||
| -rw-r--r-- | src/components/SearchModal.vue | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/backend/data/genReducedTreeData.py b/backend/data/genReducedTreeData.py index 508e751..9cdf1d6 100755 --- a/backend/data/genReducedTreeData.py +++ b/backend/data/genReducedTreeData.py @@ -28,7 +28,9 @@ with open(nodeNamesFile) as file: if iterNum % 100 == 0: print("Iteration {}".format(iterNum)) # - row = dbCur.execute("SELECT name, alt_name from names WHERE alt_name = ?", (line.rstrip(),)).fetchone() + row = dbCur.execute("SELECT name from nodes WHERE name = ?", (line.rstrip(),)).fetchone() + if row == None: + row = dbCur.execute("SELECT name from names WHERE alt_name = ?", (line.rstrip(),)).fetchone() if row != None: minimalNames.add(row[0]) if len(minimalNames) == 0: diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue index e78a2f1..f86590b 100644 --- a/src/components/SearchModal.vue +++ b/src/components/SearchModal.vue @@ -101,7 +101,7 @@ export default defineComponent({ let reqDelay = 0; if (this.pendingSearchSuggReq != 0){ clearTimeout(this.pendingSearchSuggReq); - reqDelay = 500; + reqDelay = 300; } this.pendingSearchSuggReq = setTimeout(() => fetch(url.toString()) |
