Single Reihen Page

This commit is contained in:
Simon Martens
2025-02-15 17:29:55 +01:00
parent 02d1ed7892
commit 0aa8511ef0
6 changed files with 85 additions and 3 deletions

View File

@@ -246,3 +246,15 @@ func SeriesForYear(app core.App, year int) ([]*Series, SeriesEntries, map[string
return SeriesForEntries(app, series)
}
func SeriesForId(app core.App, id string) (*Series, error) {
s := &Series{}
err := app.RecordQuery(SERIES_TABLE).
Where(dbx.HashExp{MUSENALMID_FIELD: id}).
One(s)
if err != nil {
return nil, err
}
return s, nil
}