seongjoo
unread,Oct 1, 2011, 3:36:03 AM10/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
When a field in a table of models has a datetime as below,
db.define_table('tablename', ..., Field('time', 'datetime') )
I want to use the time value to query latest update of entries. So I
figured that below might achieve the purpose:
db.((db.tablename.account== id) & (db.tablename.time >
lastupdate)).select()
, where lastupdate is datetime object.
The problem is that the query selects as if the latter condition is
not there.