From f9d76a12eada6b7a23177be25104681be9af47a8 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Mon, 29 Aug 2022 19:32:19 +0100 Subject: [PATCH] Changed annotation --- server/CLIent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/CLIent.py b/server/CLIent.py index 85b06d1..08e2b18 100644 --- a/server/CLIent.py +++ b/server/CLIent.py @@ -80,7 +80,7 @@ def validate_answer(answers:list, question:dict) -> bool: try: return all([check_range(answer=int(answer)) for answer in answers]) except ValueError: return False -def render_questions() -> list: +def render_questions() -> dict: answers = [] try: questions = requests.get(url=f'{SERVER}{FETCH_PATH}questions/').json() @@ -102,7 +102,7 @@ def render_questions() -> list: print(exception) quit() -def render_results(results:list): +def render_results(results:dict): print('\n---- Results ----\n') plural = len(results['playbooks']) > 1 print(f'Your { "results are" if plural else "result is"}:')