Course Progress

    <% lastChapter = None %> % for hw in homeworks:
  1. %if hw['chapter'] != lastChapter:

    ${ hw['chapter'] }

    <% lastChapter = hw['chapter'] %> %else:

    -

    %endif

    <% earned = hw['section_total'][0] total = hw['section_total'][1] percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else "" %> ${ hw['section'] } ${"({}/{}) {}".format( earned, total, percentageString )}

      %if len(hw['scores']) > 0: Problem Scores: %endif % for score in hw['scores']:
    • ${ score[0] }/${ score[1] }
    • % endfor
  2. % endfor