Commit 3a25876f by Gregory Martin Committed by GitHub

Merge pull request #11 from edx/yro/fix_val_integrity_errors

Fir Integrity Errors
parents e007b20f 426aeaf4
...@@ -356,9 +356,10 @@ class VALAPICall(): ...@@ -356,9 +356,10 @@ class VALAPICall():
VAL will not allow duped studio urls to be sent, VAL will not allow duped studio urls to be sent,
so we must scrub the data so we must scrub the data
""" """
for c in val_api_return['courses']: for retrieved_course in val_api_return['courses']:
if c in self.val_data['courses']: for course in list(self.val_data['courses']):
self.val_data['courses'].remove(c) if retrieved_course.keys() == course.keys():
self.val_data['courses'].remove(course)
self.profile_determiner(val_api_return=val_api_return) self.profile_determiner(val_api_return=val_api_return)
self.val_data['status'] = self.val_status self.val_data['status'] = self.val_status
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment