updatemodels

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

The subcommand update-sagarin scrapes the team Sagarin ratings from https://sagarin.com/sports/cfsend.htm.

Index

Constants

View Source
const PERF_URL = "https://www.thepredictiontracker.com/ncaaresults.php"
View Source
const PRED_CSV = "https://www.thepredictiontracker.com/ncaapredictions.csv"
View Source
const SAG_URL = "https://sagarin.com/sports/cfsend.htm"

sagURL is the URL or file name of the file containing Sagarin ratings.

Variables

This section is empty.

Functions

func AddModels

func AddModels(ctx *Context) error

func GetPredictions

func GetPredictions(ctx *Context) error

func LsModels

func LsModels(ctx *Context) error

func RmModels

func RmModels(ctx *Context) error

func UpdateModels

func UpdateModels(ctx *Context) error

func UpdateSagarin

func UpdateSagarin(ctx *Context) error

Types

type Context

type Context struct {
	context.Context

	DryRun          bool
	Force           bool
	FirestoreClient *fs.Client
	Season          int
	Week            int
	ModelNames      []string
	SystemNames     []string
}

func NewContext

func NewContext(ctx context.Context) *Context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL