Skip to content

Fix misleading fibit step count#122

Merged
Jozys merged 2 commits intodevelopmentfrom
fix/fitbit-step-mislead
Apr 13, 2025
Merged

Fix misleading fibit step count#122
Jozys merged 2 commits intodevelopmentfrom
fix/fitbit-step-mislead

Conversation

@Jozys
Copy link
Copy Markdown
Collaborator

@Jozys Jozys commented Apr 13, 2025

🚀 Pull Request

Brief Description

This pull request fixes problems with the step calculation coming from Fitbit

Linked Issues

GitHub Copilot Text

This pull request includes an important change to the BaseLocalHealthRepoImpl class in the lib/data/repositories/base_local_health_impl.dart file. The change improves the logic for checking overlapping data points by ensuring that points from the same source are not considered overlapping.

Key change:

  • Added a check to ensure that data points from the same source are not considered overlapping by comparing the sourceName property of the points.

Jozys added 2 commits April 12, 2025 13:11
- sourceId is an empty string in most cases, so the sourceName, which is the packageId of the reporting app
@Jozys Jozys requested a review from ScreepCode April 13, 2025 10:36
@Jozys Jozys self-assigned this Apr 13, 2025
Copilot AI review requested due to automatic review settings April 13, 2025 10:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • lib/data/repositories/base_local_health_impl.dart: Language not supported

@Jozys Jozys merged commit 89284c1 into development Apr 13, 2025
2 checks passed
@Jozys Jozys deleted the fix/fitbit-step-mislead branch April 13, 2025 18:13
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.

[BUG] Fitbit step count is misleading

3 participants