Skip to content

Conversation

jhamon
Copy link
Contributor

@jhamon jhamon commented Feb 16, 2013

The previous sensei message tells the user they are "{completed}/
{total} lessons away from enlightenment." This is not a true
statement since your fractional progress is not equal to your
distance from enlightenment. I have modified the report_progress
function to return a two line string. The first line reports the
total progress and the second line tells them they are {total-
completed} koans away from enlightenment.

I modified report_progress() in both python2/runner/sensei.py
and python3/runner/sensei.py
Screen Shot 2013-02-15 at 10 31 09 PM

The previous sensei message tells the user they are "{completed}/
{total} lessons away from enlightenment."  This is not a true
statement since your fractional progress is not equal to your
distance from enlightenment.  I have modified the report_progress
function to return a two line string.  The first line reports the
total progress and the second line tells them they are {total-
completed} koans away from enlightenment.

I modified report_progress() in both python2/runner/sensei.py
and python3/runner/sensei.py
gregmalcolm added a commit that referenced this pull request Feb 16, 2013
Modified: python*/runner/sensei.py to fix progress message.
@gregmalcolm gregmalcolm merged commit a8bc100 into gregmalcolm:master Feb 16, 2013
@gregmalcolm
Copy link
Owner

Thanks! That does look cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants