From 2e68f813a38689f228605d53872f6525dda9e38a Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Wed, 17 Jan 2024 12:25:00 +0200 Subject: [PATCH] wac: comment out unused variable Not removing it as I did not write this code. Fixes the following flake8 error: F841 local variable 'text_score' is assigned to but never used --- app/internal/wac.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/internal/wac.py b/app/internal/wac.py index 8abb572..c00a8ff 100644 --- a/app/internal/wac.py +++ b/app/internal/wac.py @@ -361,7 +361,8 @@ def wac_search( try: id = json_get(wac_search_result, "/hits[0]/document/id") - text_score = json_get(wac_search_result, "/hits[0]/text_match") + # unused + # text_score = json_get(wac_search_result, "/hits[0]/text_match") tokens_matched = json_get( wac_search_result, "/hits[0]/text_match_info/tokens_matched") wac_command = json_get(