From b0d0b41502621fcf110ea287a99d0c3712953a5e Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 20 Dec 2023 11:37:54 +0530 Subject: [PATCH] fix: batch meta image saving --- lms/lms/doctype/lms_batch/lms_batch.py | 2 +- lms/www/batches/batch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/lms/doctype/lms_batch/lms_batch.py b/lms/lms/doctype/lms_batch/lms_batch.py index 857df297..e2e23555 100644 --- a/lms/lms/doctype/lms_batch/lms_batch.py +++ b/lms/lms/doctype/lms_batch/lms_batch.py @@ -274,7 +274,7 @@ def create_batch( "description": description, "batch_details": batch_details, "batch_details_raw": batch_details_raw, - "image": meta_image, + "meta_image": meta_image, "seat_count": seat_count, "start_time": start_time, "end_time": end_time, diff --git a/lms/www/batches/batch.py b/lms/www/batches/batch.py index 666658cc..c03e9e9f 100644 --- a/lms/www/batches/batch.py +++ b/lms/www/batches/batch.py @@ -44,6 +44,7 @@ def get_context(context): "published", "allow_future", "evaluation_end_date", + "meta_image", ], as_dict=True, ) @@ -156,7 +157,6 @@ def get_class_course_details(batch_courses): "image", "upcoming", "short_introduction", - "image", "paid_course", "course_price", "enable_certification",