diff --git a/profile.html b/profile.html index 4fde6c4f42..c653e61a6d 100644 --- a/profile.html +++ b/profile.html @@ -110,9 +110,9 @@ $(function() { <% earned = hw['section_total'][0] total = hw['section_total'][1] - percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else "" + percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 else "" %> - ${ hw['section'] } ${"({}/{}) {}".format( earned, total, percentageString )} + ${ hw['section'] } ${"({0}/{1}) {2}".format( earned, total, percentageString )} ${hw['subtitle']} % if 'due' in hw and hw['due']!="": due ${hw['due']} diff --git a/profile_graphs.js b/profile_graphs.js index 18a6928eab..80eb9dc3b0 100644 --- a/profile_graphs.js +++ b/profile_graphs.js @@ -47,7 +47,7 @@ $(function () { detail_tooltips["${section['category']}"] = ${ json.dumps([score['summary'] for score in section['subscores']] ) }; droppedScores = droppedScores.concat(${ json.dumps( [[tickIndex + index, 0.05] for index in section['dropped_indices']]) }); - <% dropExplanation = "The lowest {} {} scores are dropped".format( len(section['dropped_indices']), section['category'] ) %> + <% dropExplanation = "The lowest {0} {1} scores are dropped".format( len(section['dropped_indices']), section['category'] ) %> detail_tooltips['Dropped Scores'] = detail_tooltips['Dropped Scores'].concat( ${json.dumps( [dropExplanation] * len(section['dropped_indices']) )} ); <% tickIndex += len(section['subscores']) + sectionSpacer %>