feat: persist map tile settings (provider/style/API keys) server-side on user record; unbake Thunderforest default key into backend config (THUNDERFOREST_DEFAULT_KEY) served via profile
Build and push images / validate (push) Successful in 2s
Build and push images / build-backend (push) Successful in 7s
Build and push images / build-worker (push) Successful in 6s
Build and push images / build-frontend (push) Successful in 9s

This commit is contained in:
2026-06-23 12:37:27 +01:00
parent ffe285b7ba
commit 3c97595093
8 changed files with 157 additions and 49 deletions
+9
View File
@@ -118,6 +118,15 @@ async def init_db():
except Exception as e:
print(f"users.dashboard_layout column migration skipped: {e}")
# map_settings column on users added after initial creation
try:
async with engine.begin() as conn:
await conn.execute(text(
"ALTER TABLE users ADD COLUMN IF NOT EXISTS map_settings JSON"
))
except Exception as e:
print(f"users.map_settings column migration skipped: {e}")
# Backfill avg_hr_day / max_hr_day from intraday_hr for Garmin Connect synced days
try:
async with engine.begin() as conn: