seasons can be added now

This commit is contained in:
2026-02-02 19:46:14 +11:00
parent 9c70458b76
commit ef5a0dc078
8 changed files with 860 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ func ListSeasons(ctx context.Context, tx bun.Tx, pageOpts *PageOpts) (*SeasonLis
}
func GetSeason(ctx context.Context, tx bun.Tx, shortname string) (*Season, error) {
var season *Season
season := new(Season)
err := tx.NewSelect().
Model(season).
Where("short_name = ?", strings.ToUpper(shortname)).