Hi,
Massimo, i really like your framework. Thank you very much for your dedication.
I'm newbie and don't want to bother but... i think some details are missing in the manual so that we can build this kind of selects by our own, or even understand the query below.
Are there references to 'created_on' missing?. I mean, i expected your 3rd line to be:
max_created_on = t.max(created_on)
and then use one of the two sides of the expression on the 5th line:
db(query).select(t.device_id,t.sensor_id,t.max(created_on),...
or
db(query).select(t.device_id,t.sensor_id,max_created_on,...
also 4th line souldn't be...?:
query = Expression(db,"date_sub(now(), interval interval_time minute) > created_on")
Hope not to bother.
Many thanks.
BTW, i offer myself to help to improve some parts of the manual from the point of view of someone who is yet learning.
Best regards,
mcamel.