Skip to content

fix(activity): use s_insert_or_update for lap persistence#321

Open
Carlixgonzam wants to merge 1 commit into
tcgoetz:masterfrom
Carlixgonzam:distanceIssue
Open

fix(activity): use s_insert_or_update for lap persistence#321
Carlixgonzam wants to merge 1 commit into
tcgoetz:masterfrom
Carlixgonzam:distanceIssue

Conversation

@Carlixgonzam

Copy link
Copy Markdown

replaced the s_exists + add pattern in _write_lap_entry with s_insert_or_update(ignore_none=True) so that existing lap rows are updated on re-import rather than silently skipped.
This preserves legitimate zero-valued fields such as distance=0.0 for rest laps, and adds the missing min_temperature mapping to both _write_lap_entry and _write_session_entry

replaced the s_exists + add pattern in _write_lap_entry with s_insert_or_update(ignore_none=True) so that existing lap rows are updated on re-import rather than silently skipped.
This preserves legitimate zero-valued fields such as distance=0.0 for rest laps, and adds the missing min_temperature mapping to both _write_lap_entry and _write_session_entry
@tcgoetz

tcgoetz commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Looks good. Please retarget the PR against the develop branch.

@Carlixgonzam

Copy link
Copy Markdown
Author

perfect! I´ll do right know, if you need more documentation about this, I'll do it right now. Also I have to verify first if the integration with develop branch works well :)

@tcgoetz

tcgoetz commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Any update?

@Carlixgonzam

Copy link
Copy Markdown
Author

Any update?

hi! I left all my changes in develop branch, but I'm still working on other fixes that I found in the repo. I'm also making some test in my Garmin watch so if there's any other update I'll tell you.

I could be interesting if we add some agents for improving the dashboards ;) 🫶🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants