On Saturday, August 3, 2019 at 12:53:02 AM UTC-7, Val K wrote:
>
> I just want to say that you can't retrieve sum from row using the
> string-key 'sum', you should use the object as in the book example. And it
> would be better if dal supports syntax like db.table.field.sum().as('mysum')
When I put [sum] as the retrieval, I get "key error -- builtin object sum".
When I use ["sum"], I get "key error -- 'sum'".
I am not converting to JSON or dict, I just want the value as in the book
example.
/dps
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/81c2f049-c681-4be2-807f-8aabb587f44c%40googlegroups.com.