From e58f0a99eff96dd277ac8a051ac8f48eb190b85b Mon Sep 17 00:00:00 2001 From: Anas Hameed <68567262+Anas-hameed@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:12:12 +0500 Subject: [PATCH] Refactor: Remove the dataloader for demo course from the site creation. (#86) Co-authored-by: Anas-hameed --- .../apps/edly_discovery_app/api/v1/views/edly_sites.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py b/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py index a8381352fb..5dc36647da 100644 --- a/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py +++ b/course_discovery/apps/edly_discovery_app/api/v1/views/edly_sites.py @@ -28,12 +28,9 @@ def post(self, request): validations_messages = validate_partner_configurations(request.data) if len(validations_messages) > 0: return Response(validations_messages, status=status.HTTP_400_BAD_REQUEST) - - partner = request.data.get('partner_short_code', None) - + try: self.discovery_site_setup() - run_dataloader(partner, DEFAULT_COURSE_ID.format(partner), 'lms') return Response( {'success': ERROR_MESSAGES.get('CLIENT_SITES_SETUP_SUCCESS')}, status=status.HTTP_200_OK