Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalfarman committed Dec 8, 2023
1 parent 960fd36 commit 59c3852
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions course_discovery/apps/course_metadata/data_loaders/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ def _process_response(self, response):
try:
body = self.clean_strings(body)
official_run, draft_run = self.get_course_run(body)
for key, value in body.items():
logger.info('I am Body Values {}: {}'.format(key, value))
logger.info("invite flag {}".format(body.get('invite_only', 'No Flag Value')))
if official_run or draft_run:
self.update_course_run(official_run, draft_run, body)
if not self.partner.uses_publisher:
Expand Down Expand Up @@ -273,7 +272,6 @@ def format_course_run_data(self, body, course=None):
'video': self.get_courserun_video(body),
'status': CourseRunStatus.Unpublished,
'mobile_available': body.get('mobile_available') or False,
'invite_only': body.get('invite_only') or False
})

if course:
Expand Down

0 comments on commit 59c3852

Please sign in to comment.