Skip to content

Instantly share code, notes, and snippets.

@sophiebits
Created September 4, 2011 23:26
Show Gist options
  • Save sophiebits/1193709 to your computer and use it in GitHub Desktop.
Save sophiebits/1193709 to your computer and use it in GitHub Desktop.
diff -r 7f333be583d6 exercises.py
--- a/exercises.py Fri Sep 02 14:25:23 2011 -0700
+++ b/exercises.py Sun Sep 04 19:26:16 2011 -0400
@@ -308,6 +308,7 @@
if problem_log.correct:
proficient = user_data.is_proficient_at(user_exercise.exercise)
+ explicitly_proficient = user_data.is_explicitly_proficient_at(user_exercise.exercise)
suggested = user_data.is_suggested(user_exercise.exercise)
problem_log.suggested = suggested
@@ -319,7 +320,7 @@
user_exercise.streak += 1
user_exercise.longest_streak = max(user_exercise.longest_streak, user_exercise.streak)
- if user_exercise.streak >= exercise.required_streak and not proficient:
+ if user_exercise.streak >= exercise.required_streak and not explicitly_proficient:
user_exercise.set_proficient(True, user_data)
user_data.reassess_if_necessary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment