fix: user progress issue

This commit is contained in:
Rohit Waghchaure 2019-02-19 19:46:14 +05:30
parent ff6d2692d3
commit f4049f9dfd

View File

@ -16,8 +16,9 @@ def get_setup_progress():
return frappe.local.setup_progress
def get_action_completed_state(action_name):
return [d.is_completed for d in get_setup_progress().actions
if d.action_name == action_name][0]
for d in get_setup_progress().actions:
if d.action_name == action_name:
return d.is_completed
def update_action_completed_state(action_name):
action_table_doc = [d for d in get_setup_progress().actions