Re-read already-uploaded tracks once so their profiles get power and temperature
This commit is contained in:
1 parent
ebd4852e98
commit
3e487539bc
4 files changed
+66
-1
No files matched your search
@@ -107,6 +107,12 @@ module Maptool
|
||||
GPX_STORE = GpxStore.new(File.join(DATA_DIR, "gpx"))
|
||||
LIBRARY = Library.new(File.join(DATA_DIR, "library.sqlite"), gpx_store: GPX_STORE,
|
||||
sources_dir: File.join(DATA_DIR, "library", "sources"))
|
||||
# Once per parser upgrade, in the background so boot isn't held up.
|
||||
Thread.new do
|
||||
warn "library: re-read #{LIBRARY.reparse} track profiles"
|
||||
rescue StandardError => e
|
||||
warn "library reparse failed: #{e.message}"
|
||||
end
|
||||
LIVETRACK_STORE = LiveTrackStore.new(File.join(DATA_DIR, "livetrack.json"))
|
||||
|
||||
# Not under DATA_DIR: unlike everything else there (uploads, PMTiles,
|
||||
|
||||
Reference in new issue
Block a user