๐ v2.0.0
Closed this issue ยท 0 comments
alankan886 commented
After speaking with @blazej-czapp and receiving useful feedback, I'm looking to push out a new version that's simpler and more user-friendly.
To toss off the over-engineered code, my main goals are:
- Keeping the class attributes simple (i.e. no previous and current values)
- Adding
review(quality, review_date)
function and keepingfirst_review(quality, review_date)
, removing everything else. - Allowing the user to input date as a string with format Year-Month-Day and other common formats.
The flow of using the package when pulling data from the database would be:
from supermemo2 import SMTwo
# first review
review = SMTwo.first_review(quality, review_date)
# after first review
# your read data from db for your existing values
# new review
# returns an SMTwo object with the new values
review = SMTwo(easiness, interval, repetitions).review(quality, review_date)