def get_lastest_dht11(): return __to_pub_list( DHT11Record.query.group_by(DHT11Record.sensor_uuid) .having(func.max(DHT11Record.timestamp)).all())