Allerhand Kleinigkeiten; Einzelansichten Reihen u Personen; Bandansicht

This commit is contained in:
Simon Martens
2025-02-25 02:39:29 +01:00
parent 6b5fa3dbc3
commit 24f1e4fd55
33 changed files with 843 additions and 154 deletions

View File

@@ -103,6 +103,17 @@ func EntryForId(app core.App, id string) (*Entry, error) {
return entry, nil
}
func EntriesForIds(app core.App, ids []any) ([]*Entry, error) {
entries := []*Entry{}
err := app.RecordQuery(ENTRIES_TABLE).
Where(dbx.HashExp{ID_FIELD: ids}).
All(&entries)
if err != nil {
return nil, err
}
return entries, nil
}
func EntryForMusenalmID(app core.App, id string) (*Entry, error) {
entry := &Entry{}
err := app.RecordQuery(ENTRIES_TABLE).