Merge pull request #7564 from neilLasrado/patch-fix

Fix for update assessment modules patch
This commit is contained in:
KanchanChauhan 2017-01-23 15:46:57 +05:30 committed by GitHub
commit d825409226

View File

@ -16,6 +16,8 @@ def execute():
rename_field("Assessment Plan", "grading_structure", "grading_scale")
frappe.reload_doc("schools", "doctype", "assessment_result")
frappe.reload_doc("schools", "doctype", "assessment_result_detail")
for assessment in frappe.get_all("Assessment Plan", fields=["name", "grading_scale"]):
for stud_result in frappe.db.sql("select * from `tabAssessment Result` where parent= %s", assessment.name, as_dict=True):
if stud_result.result: