summaryrefslogtreecommitdiff
path: root/system/db/config.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 15:08:22 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 15:08:22 -0800
commit650b67e118c6672c65f1b0fab684695284127e9b (patch)
treedebc6a1d90a38e80f839643ce35f98ec89498dd8 /system/db/config.go
parent054f01662788fb3bb7fd2808980e59c3a918e9e3 (diff)
substituting "_{specifier}" => "__{specifier}" so users can add their own types with "_" as a separator and not face conflicts
Diffstat (limited to 'system/db/config.go')
-rw-r--r--system/db/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/db/config.go b/system/db/config.go
index 6855081..ab1c720 100644
--- a/system/db/config.go
+++ b/system/db/config.go
@@ -24,7 +24,7 @@ func init() {
// SetConfig sets key:value pairs in the db for configuration settings
func SetConfig(data url.Values) error {
err := store.Update(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte("_config"))
+ b := tx.Bucket([]byte("__config"))
// check for any multi-value fields (ex. checkbox fields)
// and correctly format for db storage. Essentially, we need
@@ -108,7 +108,7 @@ func Config(key string) ([]byte, error) {
func ConfigAll() ([]byte, error) {
val := &bytes.Buffer{}
err := store.View(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte("_config"))
+ b := tx.Bucket([]byte("__config"))
val.Write(b.Get([]byte("settings")))
return nil