Skip to content

Clean up implicit historic logic in national forecast endpoint#525

Open
iivanhaj wants to merge 3 commits intoopenclimatefix:mainfrom
iivanhaj:fix-national-forecast-historic-logic
Open

Clean up implicit historic logic in national forecast endpoint#525
iivanhaj wants to merge 3 commits intoopenclimatefix:mainfrom
iivanhaj:fix-national-forecast-historic-logic

Conversation

@iivanhaj
Copy link

Description

Fixes #470

This removes the hidden historic-mode switch in the national /forecast endpoint and makes the behavior explicit and consistent by always using the latest-forecast path.

How Has This Been Tested?

  • Ran python -m py_compile nowcasting_api/national.py to verify there are no syntax errors.

  • Manual code review to confirm the endpoint logic is now deterministic and does not depend on implicit historic mode.

  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

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.

Clean up unconsistent parameters in api

1 participant

Comments