This commit is contained in:
Vivek Santayana 2022-09-01 11:56:27 +01:00
parent 0c49d22865
commit aa20416aa1
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ def validate_answer(answers:list, question:dict) -> bool:
except ValueError: return False
def render_questions() -> dict:
answers = []
answers = [ ]
try:
questions = requests.get(url=f'{SERVER}/api/questions/').json()
except Exception as exception:

View File

@ -17,7 +17,7 @@ def load(filename:str) -> dict:
def declutter_results(raw_results:dict) -> dict:
data = deepcopy(raw_results)
playbook_lists = []
playbook_lists = [ ]
for item in data['playbooks']:
playbook_lists.append(list(item.keys())[0])
data['playbooks'] = playbook_lists