iamjustkoi / StudyTimeStats

Customizable statistics add-on for Anki.
https://ankiweb.net/shared/info/1247171202
MIT License
21 stars 4 forks source link

Fix incorrect day_avg_hrs caching #53

Closed TommyAmberson closed 9 months ago

TommyAmberson commented 9 months ago

Since the day_avg_hrs macro is 'for the current range' it should be cached with a key that takes the current range into account so it doesn't reuse the _cached_log for a different range.

TommyAmberson commented 9 months ago

resolves https://github.com/iamjustkoi/StudyTimeStats/issues/52