reduced scanning - #3
Merged
Merged
Conversation
bartman
commented
Sep 4, 2026
Owner
- Add DateScan helpers for cache-aware date listing
- Scan recent days for new workouts instead of full history
- Document -s/--scan-days date listing
- Reformat with rustfmt
resolve_date_scan turns a scan-days policy into Full, CacheOnly, or a hybrid [oldest, latest] window. latest_cached_date is the newest cache filename. These are pure so get_dates can skip the full jrange walk.
Default scan_days=0 lists dates from cache and only networks from the last cached day through today, so table/list/fetch stay local on a warm cache. -s N scans [today-N, today]; -s -1 restores sequential jrange. Empty cache or --no-cache with -s 0 still walks the full range.
Default 0 scans since the last cached workout; -1 is full history. Note that the flag must appear before the subcommand because list/show already use -s for --summary.
Add rustfmt to dependencies.sh and run it over src/ and tests/.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3 +/- ##
==========================================
- Coverage 64.26% 63.86% -0.40%
==========================================
Files 12 12
Lines 1679 1871 +192
==========================================
+ Hits 1079 1195 +116
- Misses 600 676 +76 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.