Skip to content

Commit

Permalink
Refactor: Remove the dataloader for demo course from the site creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas-hmeed committed Jul 11, 2024
1 parent e16d41a commit d5dcaa0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5dcaa0

Please sign in to comment.