summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rddb/rddb.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/rddb/rddb.go b/rddb/rddb.go
index b2fedf4..e17f3fb 100644
--- a/rddb/rddb.go
+++ b/rddb/rddb.go
@@ -149,6 +149,7 @@ type getShowCartListRequest struct {
}
type JingleListEntry struct {
+ Group string
Description string
ActiveCart int
InactiveCart int
@@ -468,15 +469,15 @@ func (db *DB) getJingleList(username string) (result getJingleListResult) {
result.jingles = make(map[string]JingleListEntry)
for rows.Next() {
var jingle JingleListEntry
- var name, params string
+ var params string
- if result.err = rows.Scan(&name, &params, &jingle.ActiveCart, &jingle.InactiveCart, &jingle.Description); result.err != nil {
+ if result.err = rows.Scan(&jingle.Group, &params, &jingle.ActiveCart, &jingle.InactiveCart, &jingle.Description); result.err != nil {
return
}
if params[0] != 'J' {
continue
}
- result.jingles[name] = jingle
+ result.jingles[jingle.Group] = jingle
}
result.err = rows.Err()
return