How in the world do I pass a string variable into GQL with python?? I can do it fine in SQL but it just isn’t working. here is what I have:
personalposts = db.GqlQuery("select * from PersonalPost where user_id = %s order by created desc limit 30" % user_id)
This has been killing me but should be really simple I feel.
Thanks!
This should work:
GqlQuerysyntax examples:source: https://developers.google.com/appengine/docs/python/datastore/gqlqueryclass