Re-read already-uploaded tracks once so their profiles get power and temperature
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 22s

This commit is contained in:
randy committed 2026-11-16 18:46:58 +01:00
1 parent ebd4852e98
commit 3e487539bc
4 files changed
+66 -1

No files matched your search

+6
View File
@@ -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,