Reimagine streak algorithm to accomplish @dianna's suggestion

Sergio Mattei Author

That way I can display a neat countdown to when the streak is over!

0 Likes
Sergio Mattei Author

The system will no longer do uneccessary streak calculations - will only check when it's likely to end (when the 24 hours are up).

0 Likes
Sergio Mattei Author

I will rewrite this algorithm to be time aware. Currently while it's timezone aware, it only registers dates and not hours.

0 Likes

yay yay yay!

0 Likes
Sergio Mattei Author

It will also allow pruning old streaks automagically.

0 Likes
Sergio Mattei Author

And queue tasks for the task queue instead of running at task create (which is a very good optimization!)

0 Likes
Sergio Mattei Author

It will work the same, but will accomodate setting next-check-dates - crucial for knowing when a streak ends.

0 Likes
Sergio Mattei Author

thanks for the suggestion - it led to me rethinking this old system and I never realized how much it could actually be improved.

0 Likes

Please sign in to leave a comment.