def regrade_learner_in_course_from_csv(self, csv_file):
        csv_reader = csv.DictReader(csv_file)

        for row in csv_reader:
            recalculate_course_and_subsection_grades_for_user.apply_async(
                kwargs={'user_id': row['user_id'], 'course_key': row['course_id']}
            )
Example #2
0
    def regrade_learner_in_course_from_csv(self, csv_file):
        csv_reader = csv.DictReader(csv_file)

        for row in csv_reader:
            recalculate_course_and_subsection_grades_for_user.apply_async(
                kwargs={
                    'user_id': row['user_id'],
                    'course_key': row['course_id']
                })
Example #3
0
def recalculate_course_and_subsection_grades(sender, user, course_key, countdown=None, **kwargs):  # pylint: disable=unused-argument
    """
    Updates a saved course grade, forcing the subsection grades
    from which it is calculated to update along the way.
    """
    recalculate_course_and_subsection_grades_for_user.apply_async(
        countdown=countdown,
        kwargs=dict(
            user_id=user.id,
            course_key=six.text_type(course_key)
        )
    )