mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
chore: whitespace cleanup from codebase
This commit is contained in:
@@ -65,4 +65,4 @@ def allowed_content_access(program, content, content_type):
|
||||
and `tabTopic Content`.parent = `tabCourse Topic`.topic
|
||||
and `tabProgram Course`.parent = %(program)s""", {'program': program})
|
||||
|
||||
return (content, content_type) in contents_of_program
|
||||
return (content, content_type) in contents_of_program
|
||||
|
||||
@@ -103,4 +103,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -13,4 +13,4 @@ def get_context(context):
|
||||
|
||||
|
||||
def get_featured_programs():
|
||||
return utils.get_portal_programs() or []
|
||||
return utils.get_portal_programs() or []
|
||||
|
||||
@@ -31,4 +31,4 @@
|
||||
<div class="h-100 d-none d-sm-block" style="border: 1px solid rgba(209,216,221,0.5);border-radius: 0.25rem;background-color: rgb(250, 251, 252);">
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -52,4 +52,4 @@
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endmacro %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -23,4 +23,4 @@ def get_program_progress(student):
|
||||
completion = utils.get_program_completion(program)
|
||||
student_progress.append({'program': program.program_name, 'name': program.name, 'progress':progress, 'completion': completion})
|
||||
|
||||
return student_progress
|
||||
return student_progress
|
||||
|
||||
@@ -84,4 +84,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -26,4 +26,4 @@ def get_program(program_name):
|
||||
|
||||
def get_course_progress(courses, program):
|
||||
progress = {course.name: utils.get_course_progress(course, program) for course in courses}
|
||||
return progress or {}
|
||||
return progress or {}
|
||||
|
||||
@@ -55,4 +55,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -42,4 +42,4 @@ def get_contents(topic, course, program):
|
||||
result = None
|
||||
progress.append({'content': content, 'content_type': content.doctype, 'completed': status, 'score': score, 'result': result})
|
||||
|
||||
return progress
|
||||
return progress
|
||||
|
||||
Reference in New Issue
Block a user