Homepage calculation is broken on horse racing prediction software

Job ID: 30929770

Budget: $10 – $100 USD

The homepage calculation is wrong here

We can see from the race that the winner is:
Vigor Winner

and our site predicted this outcome with a custom built field called
- avgrank
http://dev.horseprediction.com/races/meeting/14/race/103/average?avg=1

But on homepage
http://dev.horseprediction.com/

username = jon
password = HorsePrediction2021

race 103, shows different horses.

Expected result should be choosing the horses, that have the highest avgrank.

In addition to that, when I change selector function or position_percentage parameters, I would expect that:
https://dev.horseprediction.com/debug/rating/horse/1628/race/141/historic_record/24509/avgrank

should be changed rank.
currently position_percentage is working but not selector.
Related categories: PHP Symfony PHP Parallel Processing