mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
Single Reihen Page
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user