Skip to content

feat: extend scanning window from 30 to 90 days#84

Open
hnshah wants to merge 1 commit intomvanhorn:mainfrom
hnshah:extend-90-days
Open

feat: extend scanning window from 30 to 90 days#84
hnshah wants to merge 1 commit intomvanhorn:mainfrom
hnshah:extend-90-days

Conversation

@hnshah
Copy link
Copy Markdown

@hnshah hnshah commented Mar 25, 2026

Allows --days argument to accept values from 1-90 (previously 1-30) for pre-event deep research requiring longer historical windows.

Changes

  • Updated argparse choices from range(1, 31) to range(1, 91)
  • Updated help text to reflect new 1-90 range
  • Default remains 30 days (no breaking change)

Implementation Notes

The recency_score function in scripts/lib/dates.py already accepts a max_days parameter, so this change only required updating the CLI validation to allow larger values. No changes to scoring logic were needed.

Testing

$ python3 scripts/last30days.py --help | grep days
  --days N              Number of days to look back (1-90, default: 30)

✅ Argparse accepts values 1-90
✅ Help text updated
✅ Default remains 30

Fixes #79

Allows --days argument to accept values from 1-90 (previously 1-30) for
pre-event deep research requiring longer historical windows.

Changes:
- Updated argparse choices from range(1, 31) to range(1, 91)
- Updated help text to reflect new 1-90 range
- Default remains 30 days (no breaking change)

The recency_score function in scripts/lib/dates.py already accepts
max_days parameter, so this change only required updating the CLI
validation to allow larger values.

Fixes mvanhorn#79
@mvanhorn
Copy link
Copy Markdown
Owner

Thanks Hiten, will dig in! have a bigger release coming so might need to have you rebase after.

@hnshah
Copy link
Copy Markdown
Author

hnshah commented Mar 25, 2026

Thanks for taking a look, Matt! Happy to rebase once your bigger release lands - just ping me when you're ready and I'll update all three PRs (#84, #85, #86) accordingly. Looking forward to the new release! 🚀

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.

Extend scanning window from 30 to 90 days

2 participants