def list(self, facility_id, limit, offset, order_by, render_format): """ Display list of instrument records. """ # pylint: disable=too-many-arguments # pylint: disable=no-self-use instruments = Instrument.list(facility_id, limit, offset, order_by) print(render(instruments, render_format))
def get(self, facility_id, render_format): """ Display facility record. """ # pylint: disable=no-self-use facility = Facility.get(facility_id) print(render(facility, render_format)) if render_format == 'table': instruments = Instrument.list(facility_id) print(render(instruments, render_format))