Hi,
When using filters, you must have a space between the entity name and the
filter type. So this:
scores_query = Updates.all().filter('user=', username)
needs to be this:
scores_query = Updates.all().filter('user =', username)
And the same changes should be made to all of your filters.
-Marzia
On Fri, Nov 21, 2008 at 11:17 AM, Ujj <[EMAIL PROTECTED]> wrote:
>
> hi,
> Im running an app, cricroar.appspot.com wherein the community updates
> scores and comments after logging in.
>
> My Updates model is as below
>
> class Updates(db.Model):
> matchid = db.IntegerProperty()
> updateid = db.IntegerProperty()
> user = db.StringProperty()
> score = db.StringProperty()
> overs = db.StringProperty()
> comment = db.StringProperty(multiline=True)
> date = db.DateTimeProperty(auto_now_add=True)
>
> The database entries are accurate. Pls note that the user field is the
> nickname of the user and not the user property.
>
> but whenever Im trying to retrieve the info as
>
> class ShowComment(webapp.RequestHandler):
> def get(self):
> username = self.request.get('username')
> ret_html = "hello " + username
> scores_query = Updates.all().filter('user=',username)
> scores_query.filter("user=",username)
> scores = scores_query.fetch(2)
> ...
>
> there is no result that is returned, this problem persists in both
> the dev env and the on the app engine. Ive checked the datastore and
> it has all the data for the user im checking against. This problem is
> for all properties. I have tried filtering the updateid as well and
> that too doesnt work. However i get all updates when i dont filter
> anything.
>
> The showcomment url is
> http://cricroar.appspot.com/comments?username=ujjwalgrover
>
> Any help would be appreciated. Thanks !
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---