Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions vizard/xai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ def logical_order(
str: logical question that we should ask with the given suggestion
"""
if question_title in logical_dict and not (
logical_dict[question_title] in is_answered
logical_dict[question_title][-1] in is_answered
):
output = logical_dict[question_title]
for item in logical_dict[question_title]:
if not item in is_answered:
return item
else:
output = question_title

return output

return question_title

logical_dict: Dict[str, List[str]] = {
"spouse_accompany": ["applicant_marital_status"],
Expand Down