summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsa Venton <asav1410@gmail.com>2020-10-30 09:44:37 +0000
committerAsa Venton <asav1410@gmail.com>2020-10-30 09:44:37 +0000
commitc8f6e435a435815bc24cd2420116e59204c272e8 (patch)
tree1e5fb9a572cfd683a4d02e8f94b6df0372767d1d
parentfec42a02911233da1286043e3babdcf5354d464c (diff)
Only meant to output first definition of each lexical entry in the first result. This was regressed at some point.
-rwxr-xr-xoedquery.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/oedquery.sh b/oedquery.sh
index 6ab283c..d2d1082 100755
--- a/oedquery.sh
+++ b/oedquery.sh
@@ -59,7 +59,7 @@ _getdata() {
# Return definition for the first sense of each lexical entry and create output string
_define() {
_getdata
- for json in $(echo "${result}" | jq -r '.results[].lexicalEntries[] | @base64')
+ for json in $(echo "${result}" | jq -r '.results[0].lexicalEntries[] | @base64')
do
output="$output $(_jq '.lexicalCategory.text'): "
# Sometimes there's no definition and so we can fall back to shortDefinition