Freika / dawarich

Self-hosted alternative to Google Location History (Google Maps Timeline)
https://dawarich.app
GNU Affero General Public License v3.0
1.97k stars 39 forks source link

Duplicate months in Statistics Screren #271

Open ChoosenMEME opened 6 days ago

ChoosenMEME commented 6 days ago

Describe the bug in the Stats screen there are multiple instance of some months

Version 0.14.3

To Reproduce Steps to reproduce the behavior:

  1. Import Semantic location History
  2. wait for calculations to finish
  3. open stats
  4. select year
  5. didnt do anything more

Expected behavior each month should only be shown once The total value for the year is correct

Screenshots {9A93E7A5-195A-40AF-81DF-F6816E34EFFF}

Freika commented 5 days ago

I'll look into it, meanwhile, to fix your issue you can enter the console, remove all stats and recalculate them.

user = User.find_by(email: 'YOUR@EMAIL.COM')
stats = user.stats
stats.destroy_all

Then hit the "Update stats" button on the Stats page.

ChoosenMEME commented 5 days ago

Thanks, this fixed it for me