Also refactored the portal page for sketches and moved the common code to the lms_sketch doctype module.
8 lines
181 B
Python
8 lines
181 B
Python
import frappe
|
|
from ...lms.doctype.lms_sketch.lms_sketch import get_recent_sketches
|
|
|
|
def get_context(context):
|
|
context.no_cache = 1
|
|
context.sketches = get_recent_sketches()
|
|
|