~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/worksheet.py

  • Committer: Nick Chadwick
  • Date: 2009-02-19 05:47:56 UTC
  • mto: (1099.1.180 new-dispatch)
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: chadnickbok@gmail.com-20090219054756-v984vmc7kheiq6xy
Updated the tutorial service, to now allow users to edit worksheets
online.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    # Get the student's pass/fail for each exercise in this worksheet
183
183
    for worksheet_exercise in worksheet.worksheet_exercises:
184
184
        exercise = worksheet_exercise.exercise
 
185
        worksheet = worksheet_exercise.worksheet
185
186
        optional = worksheet_exercise.optional
186
187
 
187
 
        done, _ = get_exercise_status(store, user, exercise)
 
188
        done, _ = get_exercise_status(store, user, exercise, worksheet)
188
189
        # done is a bool, whether this student has completed that problem
189
190
        if optional:
190
191
            opt_total += 1