@require_context
def vol_get_usage_by_time(context, begin):
 return model_query(context, models.VolumeUsage, read_deleted='yes').filter(or_((models.VolumeUsage.tot_last_refreshed == None), (models.VolumeUsage.tot_last_refreshed > begin), (models.VolumeUsage.curr_last_refreshed == None), (models.VolumeUsage.curr_last_refreshed > begin))).all()

@ require_context def vol_get_usage_by_time ( context , begin ) : return model_query ( context , models . VolumeUsage , read_deleted = 'yes' ) . filter ( or_ ( ( models . VolumeUsage . tot_last_refreshed == None ) , ( models . VolumeUsage . tot_last_refreshed > begin ) , ( models . VolumeUsage . curr_last_refreshed == None ) , ( models . VolumeUsage . curr_last_refreshed > begin ) ) ) . all ( )
return volumes usage that have been updated after a specified time .