Unverified Commit c6d4c7b5 authored by Claude's avatar Claude
Browse files

Fix Jinja2 template error in predict.html

Fixed UndefinedError caused by complex Jinja2 expression when calculating
Year 10 averages. Moved the average calculation to Python backend for better
maintainability and performance.

Changes:
- Calculate year10_averages in the predict() route
- Pass averages to template as a simple dictionary
- Simplified template logic to use direct dictionary lookup

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent 1a8e7155
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment