From d660d6f6e7e77eba2ea49c1232aa168d73bfac94 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Fri, 12 Jul 2024 22:51:10 +0200 Subject: [PATCH] Fix total reverse geocoded points calculation --- .app_version | 2 +- CHANGELOG.md | 10 ++++++++++ app/models/user.rb | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.app_version b/.app_version index ac39a106..f374f666 100644 --- a/.app_version +++ b/.app_version @@ -1 +1 @@ -0.9.0 +0.9.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 454b103d..fa1d679f 100644 --- a/CHANGELOG.md +++ b/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/) 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 diff --git a/app/models/user.rb b/app/models/user.rb index 9d55cd47..6ed9922f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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