diff options
author | Asa Venton <asav1410@gmail.com> | 2020-10-30 09:44:37 +0000 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2020-10-30 09:44:37 +0000 |
commit | c8f6e435a435815bc24cd2420116e59204c272e8 (patch) | |
tree | 1e5fb9a572cfd683a4d02e8f94b6df0372767d1d | |
parent | fec42a02911233da1286043e3babdcf5354d464c (diff) |
Only meant to output first definition of each lexical entry in the first result. This was regressed at some point.
-rwxr-xr-x | oedquery.sh | 2 |
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 |