Well magically it has stopped happening without any code changes... I'm still very interested in peoples' thought on the matter! It was happening on my users' page: http://silicon.appspot.com/users.
Thanks, Larry On Nov 27, 6:31 pm, Larry <[EMAIL PROTECTED]> wrote: > I've had the same code for some time and it has always worked fine but > now a query which should return a list of users sorted by their last > activity has mistakes in it. My code to list the users is: > > query = User.all() > query.order('-lastactivity') > ... > vals['users'] = query[:20] > > The trouble is that sometimes the users order is mixed. It should be > like: > > User | Last Activity > A | 1 minute ago > B | 2 minute ago > C | 3 minute ago > ... > > But it is: > > User | Last Activity > B | 2 minute ago > A | 1 minute ago > C | 3 minute ago > ... > > Scanning the relevant datastore API docs hasn't yielded any insight > into what is going on! It seems quite like to me that this is a bug on > Google's side rather than in my code. > > Does anyone have any ideas about possible mistakes I could have made? > Or should I contact Google about this? > > Thanks, > Larry > > And here is my full handler: > > >session = Session() > > >query = User.all() > >query.order('-lastactivity') > > >vals = {} > >vals['user'] = session.user > >vals['users'] = query[:20] > > >self.response.out.write(templ.render(Context(vals))) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---