Here is my query:
currentID = 7
deck = range(0,3)
similarIDs = db.GqlQuery('SELECT * FROM itemSet WHERE jokeID=:1 AND position IN :2', currentID, deck[:3]).fetch(100)
Here is my model:
class itemSet(db.Model):
jokeID = db.IntegerProperty()
jokeID2 = db.IntegerProperty()
position = db.IntegerProperty()
When I execute the query in the GoogleAppEngine Data Viewer, I get the results:
What am I missing?
[,,]
and I need to get the same result as in the GAE Data Viewer.. – Kex Sep 19 '11 at 15:38<google.appengine.ext.db.GqlQuery object at 0x7378079cb5d55750>
, and when I try to access a property I get the followingAttributeError: 'GqlQuery' object has no attribute 'jokeID'
.. I feel like I'm misuising GqlQuery. – Kex Sep 19 '11 at 17:38