mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Fix total reverse geocoded points calculation
This commit is contained in:
parent
64cc0dd3b5
commit
d660d6f6e7
3 changed files with 12 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
0.9.0
|
0.9.1
|
||||||
|
|
|
||||||
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -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/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
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
|
## [0.9.0] — 2024-07-12
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
@ -56,6 +64,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [0.8.7] — 2024-07-09
|
## [0.8.7] — 2024-07-09
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class User < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def total_reverse_geocoded
|
def total_reverse_geocoded
|
||||||
points.select(:id).where.not(geodata: {}).count
|
tracked_points.select(:id).where.not(geodata: {}).count
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue