Skip to content

fix(igpsport): paginate activity list and parse dotted start times#51

Merged
jorge-huxley merged 2 commits into
masterfrom
fix/igpsport-paginate-activities
Jul 20, 2026
Merged

fix(igpsport): paginate activity list and parse dotted start times#51
jorge-huxley merged 2 commits into
masterfrom
fix/igpsport-paginate-activities

Conversation

@jorge-huxley

Copy link
Copy Markdown
Owner

Summary

  • Paginate iGPSPORT queryMyActivity requests so syncs can list more than 20 rides (fixes iGPSPORT sync maxes at 20 #49).
  • Parse dotted YYYY.MM.DD start times returned by some iGPSPORT accounts, so the intervals.icu dedup window matches the listed rides instead of falling back to a full year.
  • Show the concrete dedup date range in sync progress output.

Test plan

  • uv run pytest tests/test_igpsport_core.py (pagination + dotted-date parsing)
  • uv run pytest (full suite)
  • Manual sync with --max-activities 30 lists 30 rides and reports a realistic already-uploaded count/date range

jorge-huxley and others added 2 commits July 20, 2026 15:03
queryMyActivity returns at most 20 rows per page, so a single request
silently capped syncs regardless of --max-activities.

Co-authored-by: Cursor <cursoragent@cursor.com>
Some accounts return date-only YYYY.MM.DD times from iGPSPORT. Unparsed
starts triggered a 365-day fallback range, inflating the already-uploaded
count from unrelated intervals.icu activities.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jorge-huxley
jorge-huxley merged commit 2b0c105 into master Jul 20, 2026
1 check passed
@jorge-huxley
jorge-huxley deleted the fix/igpsport-paginate-activities branch July 20, 2026 14:07
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.

iGPSPORT sync maxes at 20

1 participant