Fix total reverse geocoded points calculation

This commit is contained in:
Eugene Burmakin 2024-07-12 22:51:10 +02:00
parent 64cc0dd3b5
commit d660d6f6e7
3 changed files with 12 additions and 2 deletions

View file

@ -1 +1 @@
0.9.0
0.9.1

View file

@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.9.1] — 2024-07-12
### Fixed
- Fixed a bug where total reverse geocoded points were calculated based on number of *imported* points that are reverse geocoded, not on the number of *total* reverse geocoded points.
---
## [0.9.0] — 2024-07-12
### Added
@ -56,6 +64,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
}
```
---
## [0.8.7] — 2024-07-09
### Changed

View file

@ -45,7 +45,7 @@ class User < ApplicationRecord
end
def total_reverse_geocoded
points.select(:id).where.not(geodata: {}).count
tracked_points.select(:id).where.not(geodata: {}).count
end
private