Added sketch pages.

This commit is contained in:
Anand Chitipothu
2021-03-09 12:36:55 +00:00
parent ff15e7058b
commit deea539c7d
6 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import frappe
def get_context(context):
context.no_cache = 1
context.sketches = get_sketches()
def get_sketches():
sketches = frappe.get_all(
"LMS Sketch",
fields=['name', 'title', 'owner', 'modified'],
order_by='modified desc',
page_length=100
)
for s in sketches:
s['owner'] = s['owner'].split("@")[0]
return sketches