Commit 426aeaf4 by Gregory Martin
parent e007b20f
...@@ -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