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"}:')