mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -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
|
## [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
|
### 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.
|
- 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)
|
.each(&:destroy)
|
||||||
|
|
||||||
Rails.logger.info 'Points without coordinates removed.'
|
Rails.logger.info 'Points without coordinates removed.'
|
||||||
|
|
||||||
|
StatCreatingJob.perform_later(User.pluck(:id))
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue