Not much documentation about this, as far as I can find.
I want to count and group by the date without the time or day.
That is...
https://groups.google.com/forum/#!searchin/web2py/group$20and$20count$20by$20date/web2py/G6xRnfONnSo/bXaG4bhigwIJ
But with the date.  Obviously .date() doesn't work here.

Currently I am doing this:
    sum_of_entries = db.lendable_visit.id.count()
    year_part = db.lendable_visit.visit_date.month()
    visits_by_date = db((db.lendable_visit.id > 0)).select(sum_of_entries, 
year_part, groupby=db.lendable_visit.visit_date.year(), 
orderby=~sum_of_entries)

But this seems to only show them by the month. (Though I could be wrong)
Ideas?

-- 
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.

Reply via email to