this is working

db(db.orders.id > 0).select("count(1) as nr, round(id/10) as gr",
groupby='gr')

so I think you can use database datetime function to compute week and then
grouping,
most database have such functions

Reply via email to