Skip to content

Commit

Permalink
Refactor: Remove the dataloader for demo course from the site creatio…
Browse files Browse the repository at this point in the history
…n. (#86)

Co-authored-by: Anas-hameed <[email protected]>
  • Loading branch information
Anas-hameed and Anas-hmeed committed Jul 18, 2024
1 parent e16d41a commit e58f0a9
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 e58f0a9

Please sign in to comment.