summaryrefslogtreecommitdiff
path: root/system/api
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/api
parent054f01662788fb3bb7fd2808980e59c3a918e9e3 (diff)
substituting "_{specifier}" => "__{specifier}" so users can add their own types with "_" as a separator and not face conflicts
Diffstat (limited to 'system/api')
-rw-r--r--system/api/analytics/init.go2
-rw-r--r--system/api/external.go2
-rw-r--r--system/api/handlers.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index 41c24c7..7cb35af 100644
--- a/system/api/analytics/init.go
+++ b/system/api/analytics/init.go
@@ -66,7 +66,7 @@ func Init() {
}
err = store.Update(func(tx *bolt.Tx) error {
- _, err := tx.CreateBucketIfNotExists([]byte("requests"))
+ _, err := tx.CreateBucketIfNotExists([]byte("__requests"))
if err != nil {
return err
}
diff --git a/system/api/external.go b/system/api/external.go
index 2e9597e..0d1ea03 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -132,7 +132,7 @@ func externalContentHandler(res http.ResponseWriter, req *http.Request) {
return
}
} else {
- spec = "_pending"
+ spec = "__pending"
}
_, err = db.SetContent(t+spec+":-1", req.PostForm)
diff --git a/system/api/handlers.go b/system/api/handlers.go
index f31a1eb..8a1517b 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -72,7 +72,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
Order: order,
}
- _, bb := db.Query(t+"_sorted", opts)
+ _, bb := db.Query(t+"__sorted", opts)
var result = []json.RawMessage{}
for i := range bb {
result = append(result, bb[i])