how about:

expired = Association.gql("WHERE issued  < %d" % (now - lifetime))

?

On May 21, 12:00 am, james <james.sa.2...@gmail.com> wrote:
> Hi there,
>
> I am porting django_authopenid right now and met an issue. There's no
> arithmetic operator in GQL. Here's an example.
>
> expired = Association.gql("WHERE issued + lifetime < %d" % now)
>
> Any suggestion for simple implementation.
--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to