Repository navigation
Conversation
- strava/: CSV store for Strava activities plus an upsert script for list_activities output, seeded with Aug-Oct 2026 history - training/weekly_report.py: weekly km, run count, relative effort, week-over-week change (flags >10% jumps), back-to-back run days, and average sleep/HRV/RHR from Garmin, rendered as markdown - tests and a sample report for the week of 19 Oct 2026 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019gbRNwSBGyW7dwwxemNuPy
onehoka
commented
Oct 23, 2026
onehoka
left a comment
Owner
Author
There was a problem hiding this comment.
Reviewed for correctness. Logic of the weekly report is right: tests pass (5/5), and I hand-checked the sample report against strava/data/activities.csv (e.g. 19–25 Oct: effort 26+19+39+13 = 97, back-to-back Mon/Tue/Wed because Sun 18 Oct had a run). It does not conflict with #1 (git merge-tree of both heads is clean, no shared files).
Two things to fix before merging:
- Timezone bug in the
--todaydefault: in UTC environments a morning run of the report picks yesterday's date, which on Monday mornings shows last week as "current". Suggestion inline. - Committed
__pycache__/*.pycfiles should be removed and ignored.
One non-blocking nit about the Strava upsert reusing the improved compare/save from #1.
Generated by Claude Code
- weekly_report.py: default --today is the current date in WIB, so a run from a UTC machine before 07:00 WIB no longer picks yesterday - README: TZ=Asia/Jakarta for the report filename date - remove committed __pycache__ and ignore it at the repo root - strava upsert: compare numbers by value and write the CSV atomically, same as the hardened Garmin upsert Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019gbRNwSBGyW7dwwxemNuPy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by iwan · project thread
What
strava/: a CSV store for Strava activities (data/activities.csv) andscripts/upsert.py, which takes the Stravalist_activitiesJSON and upserts by activity id, same pattern asgarmin/scripts/upsert.py. Seeded with 39 activities from Aug to 23 Oct 2026.training/weekly_report.py: builds a markdown report per Monday–Sunday week:garmin/data/daily.csvtraining/reports/2026-10-23.md: sample output for the last 8 weeks.training/test_weekly_report.py.Usage
Notes
–for recovery.Generated by Claude Code