Reimagine streak algorithm to accomplish @dianna's suggestion
The system will no longer do uneccessary streak calculations - will only check when it's likely to end (when the 24 hours are up).
I will rewrite this algorithm to be time aware. Currently while it's timezone aware, it only registers dates and not hours.
And queue tasks for the task queue instead of running at task create (which is a very good optimization!)
It will work the same, but will accomodate setting next-check-dates - crucial for knowing when a streak ends.
thanks for the suggestion - it led to me rethinking this old system and I never realized how much it could actually be improved.
Please sign in to leave a comment.