1
0
Fork 0
mirror of https://github.com/imjasonh/appengine-value synced 2026-07-06 22:12:22 +00:00

don't ignore datastore value

This commit is contained in:
Jason Hall 2014-05-13 15:27:48 -04:00
parent 2b4f17894a
commit da385af7f7

View file

@ -52,7 +52,7 @@ func Get(c appengine.Context, key string) string {
// Get value from datastore if missing from memcache.
k := datastore.NewKey(c, EntityName, key, 0, nil)
var e struct {
Value string `datastore:"-"`
Value string `datastore:",noindex"`
}
if err := datastore.Get(c, k, &e); err != nil {
c.Errorf("error getting %q from datastore: %v", key, err)