We need to determine by what metric is "the best" and order our results by top to worst. Currently, it displays the spreads data on matches.html in the same order the API gives it to us. Create a sorting filter that will print based on best points, best price, and maybe best book. I would start by looking at views.py, creating another variable that is a copy of spreadsJson, and sort it multiple ways. Have a separate variable for every sort. Add the copied variables to the "variables" that will pass it to matches.html.
Use pprint() to print the data nicely in the terminal.
Primary files to reference/work on:
/Jayhawk-Go/goforless/oddsAndEvents/sportz/matches.html
/Jayhawk-Go/goforless/oddsAndEvents/views.py
/Jayhawk-Go/goforless/oddsAndEvents/services.py
We need to determine by what metric is "the best" and order our results by top to worst. Currently, it displays the spreads data on matches.html in the same order the API gives it to us. Create a sorting filter that will print based on best points, best price, and maybe best book. I would start by looking at views.py, creating another variable that is a copy of spreadsJson, and sort it multiple ways. Have a separate variable for every sort. Add the copied variables to the "variables" that will pass it to matches.html.
Use pprint() to print the data nicely in the terminal.
Primary files to reference/work on: /Jayhawk-Go/goforless/oddsAndEvents/sportz/matches.html /Jayhawk-Go/goforless/oddsAndEvents/views.py /Jayhawk-Go/goforless/oddsAndEvents/services.py