mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Run stats job after removing points without coordinates
This commit is contained in:
parent
045999b292
commit
b027c1a5e0
2 changed files with 6 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||
|
||||
## [0.5.3] — 2024-06-10
|
||||
|
||||
### Added
|
||||
|
||||
- A data migration to remove points with 0.0, 0.0 coordinates. This is necessary to prevent errors when calculating distance in Stats page.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Reworked code responsible for importing "Records.json" file from Google Takeout. Now it is more reliable and faster, and should not throw as many errors as before.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ class RemovePointsWithoutCoordinates < ActiveRecord::Migration[7.1]
|
|||
.each(&:destroy)
|
||||
|
||||
Rails.logger.info 'Points without coordinates removed.'
|
||||
|
||||
StatCreatingJob.perform_later(User.pluck(:id))
|
||||
end
|
||||
|
||||
def down
|
||||
|
|
|
|||
Loading…
Reference in a new issue