fix: error toast when saving marks
This commit is contained in:
@@ -17,8 +17,8 @@ class LMSQuizSubmission(Document):
|
|||||||
if cint(row.marks) > cint(row.marks_out_of):
|
if cint(row.marks) > cint(row.marks_out_of):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
f"Marks for question number {row.idx} cannot be greater than the marks allotted for that question."
|
"Marks for question number {0} cannot be greater than the marks allotted for that question."
|
||||||
)
|
).format(row.idx)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.score += cint(row.marks)
|
self.score += cint(row.marks)
|
||||||
|
|||||||
Reference in New Issue
Block a user