feat: assignment submission and ui
This commit is contained in:
@@ -2,6 +2,7 @@ import frappe
|
||||
from lms.lms.utils import has_course_moderator_role
|
||||
from frappe import _
|
||||
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
assignment = frappe.form_dict["assignment"]
|
||||
@@ -13,4 +14,9 @@ def get_context(context):
|
||||
|
||||
raise frappe.PermissionError(_(message))
|
||||
|
||||
context.assignment = frappe.db.get_value("Lesson Assignment", assignment, ["assignment", "comments", "status", "name"], as_dict=True)
|
||||
context.assignment = frappe.db.get_value(
|
||||
"Lesson Assignment",
|
||||
assignment,
|
||||
["assignment", "comments", "status", "name", "member_name", "course", "lesson"],
|
||||
as_dict=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user