tomm3hgunn / Jayhawk-Go

0 stars 1 forks source link

Create a ranking system of the spreads, total, or moneyline #19

Open tomm3hgunn opened 1 year ago

tomm3hgunn commented 1 year ago

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

tomm3hgunn commented 1 year ago

Lower priority. Don't worry about this for the week.