chore: whitespace cleanup from codebase

This commit is contained in:
Ankush Menat
2021-08-19 14:33:03 +05:30
parent e536f6d13f
commit 9bb69e711a
1218 changed files with 1391 additions and 1643 deletions

View File

@@ -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

View File

@@ -103,4 +103,4 @@
</div>
</div>
</section>
{% endblock %}
{% endblock %}

View File

@@ -13,4 +13,4 @@ def get_context(context):
def get_featured_programs():
return utils.get_portal_programs() or []
return utils.get_portal_programs() or []

View File

@@ -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 %}

View File

@@ -52,4 +52,4 @@
}
</script>
{% endblock %}
{% endmacro %}
{% endmacro %}

View File

@@ -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

View File

@@ -84,4 +84,4 @@
</div>
</div>
</section>
{% endblock %}
{% endblock %}

View File

@@ -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 {}

View File

@@ -55,4 +55,4 @@
</div>
</div>
</section>
{% endblock %}
{% endblock %}

View File

@@ -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