Log maxmet first entry structure to identify vo2max field name
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -342,6 +342,9 @@ def sync_wellness(garmin, user_id: int, since: Optional[datetime], db,
|
|||||||
len(mm_raw) if isinstance(mm_raw, (list, dict)) else "n/a")
|
len(mm_raw) if isinstance(mm_raw, (list, dict)) else "n/a")
|
||||||
if isinstance(mm_raw, list):
|
if isinstance(mm_raw, list):
|
||||||
mm_entries = mm_raw
|
mm_entries = mm_raw
|
||||||
|
if mm_entries and isinstance(mm_entries[0], dict):
|
||||||
|
logger.info("maxmet first entry keys: %s", list(mm_entries[0].keys()))
|
||||||
|
logger.info("maxmet first entry: %s", mm_entries[0])
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.info("maxmet history fetch failed: %s", exc)
|
logger.info("maxmet history fetch failed: %s", exc)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user