fix: tabs to space, moved js to widget, removed unrelated changes

This commit is contained in:
pateljannat
2021-05-03 15:14:11 +05:30
parent 565787eeb6
commit 5fdecb708e
11 changed files with 175 additions and 173 deletions

View File

@@ -1,5 +1,5 @@
import frappe
from community.lms.models import Sketch
from ...lms.doctype.lms_sketch.lms_sketch import get_recent_sketches
def get_context(context):
context.no_cache = 1
@@ -8,7 +8,7 @@ def get_context(context):
if not context.member:
context.template = "www/404.html"
else:
context.sketches = Sketch.get_recent_sketches(context.member.email)
context.sketches = list(filter(lambda x: x.owner == context.member.email, get_recent_sketches()))
def get_member(username):
try: