Skip to content

Fix minute_data function parameter consistency - #2719

Merged
springfall2008 merged 1 commit into
mainfrom
feature/fix-minute-data-days-parameter
Oct 4, 2025
Merged

springfall2008 merged 1 commit into
mainfrom
feature/fix-minute-data-days-parameter

Conversation

@mgazza

@mgazza mgazza commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes inconsistent parameter usage in minute_data function
  • Function was using self.forecast_days instead of the days parameter in one location

Bug Description

The minute_data function accepts a days parameter but was incorrectly using self.forecast_days on line 655 when calculating to_time. This could cause inconsistent behavior when the function is called with a different days value than self.forecast_days.

Changes Made

  • Line 655: Changed self.forecast_days to days parameter for consistency
  • Ensures function behavior matches its parameter interface

Impact

  • Low risk fix - corrects parameter usage consistency
  • Prevents potential edge cases where caller passes different days value
  • No functional change for current usage patterns

🤖 Generated with Claude Code

…st_days

The minute_data function has a 'days' parameter but was incorrectly using
self.forecast_days in one location (line 655) when calculating to_time.
This could cause inconsistent behavior when the function is called with
a different days value than self.forecast_days.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@springfall2008
springfall2008 merged commit aabac95 into main Oct 4, 2025
1 check passed
@springfall2008
springfall2008 deleted the feature/fix-minute-data-days-parameter branch May 4, 2026 11: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.

2 participants