Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Basically rewrote the code a little bit. Took out the class structure that it used to have, it was basically unnecessary, I think I was just a junior engineer that wanted to be fancy and use new packages like
attrs
(very cool package though).I decided to refactor with a mindset of simplicity for users, the usage really is just reviewing a new card, put those values into database, pull those values from database and review that card again using previous values. I feel like people really just want a dictionary with those values so they can easily put it into database, and when they pull those values from database, they can easily plug it into the SM2 function.
Also, I decided to make the review_date into datetime, so it's more specific for users on when to review, and also default to using UTC timezone instead of local timezone, I think that makes a lot more sense.