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:Claude <noreply@anthropic.com>
Loading
Please sign in to comment