As I understand it, when a user clicks 'easy'/'hard'/etc we know how long to not show the card for. So if they click 'easy' we know not to show the card until a week has passed.
If it is so we can save a timestamp (showAt) on every card, which is how long to wait before we show it.
When a user goes to run flashcards, we filter out the cards that have a date later than 'now'.
As I understand it, when a user clicks 'easy'/'hard'/etc we know how long to not show the card for. So if they click 'easy' we know not to show the card until a week has passed.
If it is so we can save a timestamp (
showAt
) on every card, which is how long to wait before we show it.When a user goes to run flashcards, we filter out the cards that have a date later than 'now'.