Skip to content

Commit 3ce0bbc

Browse files
soejimampirnat
authored andcommitted
adding the achieved percentage of success (gregmalcolm#151)
1 parent 95bfb6a commit 3ce0bbc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python2/runner/sensei.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ def scrapeInterestingStackDump(self, err):
167167
return stack_text
168168

169169
def report_progress(self):
170-
return "You have completed {0} koans and " \
171-
"{1} lessons.".format(
170+
return "You have completed {0} ({2} %) koans and " \
171+
"{1} (out of {3}) lessons.".format(
172172
self.pass_count,
173-
self.lesson_pass_count)
173+
self.lesson_pass_count,
174+
self.pass_count*100/self.total_koans(),
175+
self.total_lessons())
174176

175177
def report_remaining(self):
176178
koans_remaining = self.total_koans() - self.pass_count

0 commit comments

Comments
 (0)