feat: added course, batch and lesson to exercise submission

Useful to find all the submissions for a batch/lesson.
This commit is contained in:
Anand Chitipothu
2021-05-20 15:07:14 +05:30
parent 34e993cf86
commit 6407b24324
3 changed files with 35 additions and 2 deletions

View File

@@ -25,6 +25,9 @@ def get_section(name):
@frappe.whitelist()
def submit_solution(exercise, code):
"""Submits a solution.
@exerecise: name of the exercise to submit
@code: solution to the exercise
"""
ex = frappe.get_doc("Exercise", exercise)
if not ex: