Merge branch 'main' of https://github.com/frappe/lms into class-revamp

This commit is contained in:
Jannat Patel
2023-07-26 12:27:16 +05:30
4 changed files with 15 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ set -e
echo "Setting Up System Dependencies..."
sudo apt update
sudo apt install libcups2-dev redis-server mariadb-client-10.6
sudo apt install libcups2-dev redis-server mariadb-client-10.6 mariadb-client-core-10.6
install_wkhtmltopdf() {
wget -q https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb

View File

@@ -533,7 +533,16 @@ def get_courses_under_review():
return frappe.get_all(
"LMS Course",
{"status": "Under Review"},
["name", "upcoming", "title", "image", "enable_certification", "status", "published"],
[
"name",
"upcoming",
"title",
"short_introduction",
"image",
"enable_certification",
"status",
"published",
],
)

View File

@@ -6,7 +6,8 @@
<div class="cards-parent mt-10">
{% for course_row in courses %}
{% set course = frappe.db.get_value("LMS Course", course_row.course,
["name", "upcoming", "title", "image", "enable_certification", "paid_certificate", "price_certificate", "currency"], as_dict=True) %}
["name", "short_introduction", "upcoming", "title", "image", "currency",
"enable_certification", "paid_certificate", "price_certificate"], as_dict=True) %}
{{ widgets.CourseCard(course=course, read_only=False) }}
{% endfor %}
</div>

View File

@@ -100,6 +100,7 @@ def get_enrolled_courses():
"name",
"upcoming",
"title",
"short_introduction",
"image",
"enable_certification",
"paid_certificate",
@@ -145,6 +146,7 @@ def get_authored_courses(member=None, only_published=True):
"name",
"upcoming",
"title",
"short_introduction",
"image",
"enable_certification",
"status",