albertvaka / bettercounter

A daily counter to track habits
GNU General Public License v2.0
130 stars 16 forks source link

Glitch in the frequency #24

Closed CeVague closed 9 months ago

CeVague commented 1 year ago

Hello,

I am writing to report what doesn't seem correct to me. Apparently, the yearly frequency is calculated from the first event up until now, but I don't think it's a good way to calculate it. For example, with the Théâtre/Ciné/Spectacle category, which has two dates: January 26, 2023 at 11:00 pm (1674770411300) and February 9, 2023 at 8:00 pm (1675969225196). In my opinion, it should have a frequency (as of today) of once every 21 days, but it gives me a frequency of once every 8 days.

Since I'm not sure if it's a voluntary choice or not, I prefer to report it so you can judge for yourself.

(in any case, thanks for this application ^^)

Screenshot_20230211-105114

albertvaka commented 1 year ago

I found it weird that if you start a counter in December for something and you count that thing 12 times during December, it would say "once a month". I prefer to count since the first occurrence, even though it might look weird until you have a few occurences.

CeVague commented 1 year ago

While I personally reset all the counters at the beginning of the year. But then, that's what I expected and it seems logical too, so it's ok. In any case, it's not a bug.

Have a good day and thanks for your work 👍

albertvaka commented 1 year ago

If you set the counters to "yearly", they should still show zero after new year even if they are not reseted. I hope that works :)