When the court rules on an application for release in accordance with articles 148-1 and 148-2 as well as when it rules on an application to release or modify a judicial supervision order or house arrest with electronic surveillance, the appeal must be lodged within twenty-four hours.