Skip to content

Commit ddd5823

Browse files
committed
Fixed a bug with showing negative number of lessons to complete
1 parent afdc39f commit ddd5823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python2/runner/sensei.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def report_progress(self):
174174

175175
def report_remaining(self):
176176
koans_remaining = self.total_koans() - self.pass_count
177-
lessons_remaining = self.total_lessons() - self.pass_count
177+
lessons_remaining = self.total_lessons() - self.lesson_pass_count
178178

179179
return "You are now {0} koans and {1} lessons away from " \
180180
"reaching enlightenment.".format(

python3/runner/sensei.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def report_progress(self):
174174

175175
def report_remaining(self):
176176
koans_remaining = self.total_koans() - self.pass_count
177-
lessons_remaining = self.total_lessons() - self.pass_count
177+
lessons_remaining = self.total_lessons() - self.lesson_pass_count
178178

179179
return "You are now {0} koans and {1} lessons away from " \
180180
"reaching enlightenment.".format(

0 commit comments

Comments
 (0)