From c8f6e435a435815bc24cd2420116e59204c272e8 Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Fri, 30 Oct 2020 09:44:37 +0000 Subject: Only meant to output first definition of each lexical entry in the first result. This was regressed at some point. --- oedquery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3