old_contents: from flask import jsonify
  from server import app
  from .penndata import *
  from requests.exceptions import HTTPError
  
  
  @app.route('/laundry/halls', methods=['GET'])
  def all_halls():
      try:
          return jsonify({"halls": laundry.all_status()})
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/hall/<int:hall_id>', methods=['GET'])
  def hall(hall_id):
      try:
          return jsonify(laundry.hall_status(hall_id))
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/hall/<int:hall_id>/<int:hall_id2>', methods=['GET'])
  def two_halls(hall_id, hall_id2):
      try:
          to_ret = {"halls": [laundry.hall_status(hall_id), laundry.hall_status(hall_id2)]}
          return jsonify(to_ret)
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/halls/ids', methods=['GET'])
  def id_to_name():
      try:
          return jsonify({'result': laundry.hall_id_list})
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/usage/<int:hall_no>', methods=['GET'])
  def usage(hall_no):
      days = laundry.machine_usage(hall_no)
      try:
          return jsonify({"days": days})
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
new_contents: from flask import jsonify
  from server import app
  from .penndata import *
  from requests.exceptions import HTTPError
  
  
  @app.route('/laundry/halls', methods=['GET'])
  def all_halls():
      try:
          return jsonify({"halls": laundry.all_status()})
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/hall/<int:hall_id>', methods=['GET'])
  def hall(hall_id):
      try:
          return jsonify(laundry.hall_status(hall_id))
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/hall/<int:hall_id>/<int:hall_id2>', methods=['GET'])
  def two_halls(hall_id, hall_id2):
      try:
          to_ret = {"halls": [laundry.hall_status(hall_id), laundry.hall_status(hall_id2)]}
          return jsonify(to_ret)
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/halls/ids', methods=['GET'])
  def id_to_name():
      try:
          return jsonify({
              "halls": laundry.hall_id_list
          })
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
  
  @app.route('/laundry/usage/<int:hall_no>', methods=['GET'])
  def usage(hall_no):
      days = laundry.machine_usage(hall_no)
      try:
          return jsonify({"days": days})
      except HTTPError:
          return jsonify({'error': 'The laundry api is currently unavailable.'})
  
subject: fix #102, modify laundry hall ids endpoint