request.args[0] is just a number representing a day. What's wrong here? On Thursday, November 24, 2016 at 7:14:55 PM UTC+5:30, Marlysson Silva wrote: > > what is request.args[0] ? a datetime? > > Em quinta-feira, 24 de novembro de 2016 08:38:29 UTC-3, Mike Stephenson > escreveu: >> >> rows=db((str(db.emeter.instant.month) == str(request.args[0])) & >> (db.emeter.userid==auth.user_id) ).select() >> >> >> emeter: >> >> db.define_table('emeter', >> Field('userid'), >> Field('instant', 'datetime', >> default=request.utcnow+datetime.timedelta(0,19800), writable=False, >> readable=False), >> Field('reading') >> ) >> >> >> it gives me no value instead of the correct set. What's wrong here. >> >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.