fix: updating existing assignment
This commit is contained in:
@@ -16,9 +16,9 @@ def upload_assignment(assignment, lesson, identifier):
|
||||
"user": frappe.session.user,
|
||||
"id": identifier
|
||||
}
|
||||
lesson_work = frappe.db.exists(args)
|
||||
if lesson_work:
|
||||
frappe.db.set_value("Lesson Assignment", lesson_work[0], "assignment", assignment)
|
||||
if frappe.db.exists(args):
|
||||
del args["doctype"]
|
||||
frappe.db.set_value("Lesson Assignment", args, "assignment", assignment)
|
||||
else:
|
||||
args.update({"assignment": assignment})
|
||||
lesson_work = frappe.get_doc(args)
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if member.mobile_no and not member.hide_private %}
|
||||
<a class="button-links mobile-no" href="tel:{{ member.mobile_no }}" >
|
||||
<a class="button-links" href="tel:{{ member.mobile_no }}" >
|
||||
<img src="/assets/school/icons/call.svg"> {{ member.mobile_no }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user