Merge pull request #16724 from rohitwaghchaure/user_progress_issue

fix: user progress issue
This commit is contained in:
Nabin Hait 2019-02-21 18:13:52 +05:30 committed by GitHub
commit 367d7c104e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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