From 1dc6cdebb5c2ea7a5e23255c303cbbaa02cdc165 Mon Sep 17 00:00:00 2001 From: dizzygz Date: Thu, 28 Dec 2023 18:07:51 -0500 Subject: [PATCH] update 2 places for int and str operations --- howdoi/howdoi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py index 9ab69e359..44f23c46a 100644 --- a/howdoi/howdoi.py +++ b/howdoi/howdoi.py @@ -434,7 +434,7 @@ def _get_answers(args): return False initial_pos = args['pos'] - 1 - final_pos = initial_pos + args['num_answers'] + final_pos = initial_pos + int(args['num_answers']) question_links = question_links[initial_pos:final_pos] search_engine = os.getenv('HOWDOI_SEARCH_ENGINE', 'google') @@ -465,7 +465,7 @@ def _get_answer_worker(args, link): 'position': None } - multiple_answers = (args['num_answers'] > 1 or args['all']) + multiple_answers = (int(args['num_answers']) > 1 or args['all']) if not answer: return result