google cloud datastore - GAE problem at getting results from a simple query in deployment -
hy!
i have dataviewer open @ kind named survey; there row has year=2010;
then when open app , run query survey of 2010 got no results.
q = survey.all() q.filter('year', data['year']) surveys = q.fetch(1) #json = survey[0].to_json() #key = survey[0].key() return surveys
data['year'] exists; , in development server works;
i think might has problems namespace kind? or dont know how fix it? thanks
Comments
Post a Comment