Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalfarman committed Dec 10, 2023
1 parent 59c3852 commit 5219381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course_discovery/apps/course_metadata/data_loaders/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,14 @@ def _update_verified_deadline_for_course_run(self, course_run):
seat.save()

def _update_instance(self, instance, validated_data, **kwargs):
logger.info('Instance {}'.format(instance))
if not instance:
return

updated = False

for attr, value in validated_data.items():
logger.info('Attr with Value {} {}'.format(attr, value))
if getattr(instance, attr) != value:
setattr(instance, attr, value)
updated = True
Expand Down

0 comments on commit 5219381

Please sign in to comment.