def increment_assignment_versions(course_key, usage_key, user_id):
 problem_descriptor = modulestore().get_item(usage_key)
 assignments = outcomes.get_assignments_for_problem(problem_descriptor, user_id, course_key)
 for assignment in assignments:
  assignment.version_number += 1
  assignment.save()
 return assignments

def increment_assignment_versions ( course_key , usage_key , user_id ) : problem_descriptor = modulestore ( ) . get_item ( usage_key ) assignments = outcomes . get_assignments_for_problem ( problem_descriptor , user_id , course_key ) for assignment in assignments : assignment . version_number += 1 assignment . save ( ) return assignments
update the version numbers for all assignments that are affected by a score change event .