def get_lastest_rain(): return __to_pub_list( RainRecord.query.group_by(RainRecord.sensor_uuid) .having(func.max(RainRecord.timestamp)).all())