old_contents: from flask import render_template, request, url_for, redirect, flash
  from app import app, db
  from minecraft_query import MinecraftQuery
  from vmail import testmail
  from forms import SignupForm
  from models import User, ROLE_USER, ROLE_MEMBER, ROLE_ADMIN
  
  @app.route('/')
  def voltaire():
      NUMSERVERS = len(app.config['MCSERVERS'])
      """
      d['name'] for d in app.config['MCSERVERS']:
          try:
              MCSERVER_NAME.append(d)
  
          except NameError:
              MCSERVER_NAME = [d]
  
     dd['hostname'] for dd in app.config['MCSERVERS']:
         try:
             MCSERVER_ADDR.append(dd)
  
         except NameError:
             MCSERVER_NAME = [dd]
      """
  
      return render_template('index.html',
              PAGE_TITLE='Dashboard',
              SITE_TITLE='Voltaire',
              NUMSERVERS=NUMSERVERS)
  
  @app.route('/about')
  def about():
      return render_template('about.html', 
              SITE_TITLE='Voltaire')
  
  @app.route('/mcstatus/<MCSERVER_ADDR>/<int:MCSERVER_PORT>')
  def return_mcstatus(MCSERVER_ADDR, MCSERVER_PORT):
      get_status = MinecraftQuery(MCSERVER_ADDR,MCSERVER_PORT).get_rules()
      """
      ONLINE_PLAYERS = get_status['players']
      NUM_PLAYERS = get_status['numplayers']
      MAX_PLAYERS = get_status['maxplayers']
      """
      return render_template('mcstatus.html', 
              get_status = get_status)
  
  @app.route("/signup", methods = ['GET', 'POST'])
  def signup():
      form = SignupForm(request.form)
      if request.method == 'POST' and form.validate():
          user = User(form.mcuser.data, form.mcemail.data)
          db.session.add(user)
          db.session.commit()
          flash('Thanks for signing up. Please check your email for a response soon!')
          return redirect(url_for('index'))
      return render_template('signup.html',
              title = 'Signup',
              form = form)
  
  
new_contents: from flask import render_template, request, url_for, redirect, flash
  from app import app, db
  from minecraft_query import MinecraftQuery
  from vmail import testmail
  from forms import SignupForm
  from models import User, ROLE_USER, ROLE_MEMBER, ROLE_ADMIN
  
  @app.route('/')
  def voltaire():
      NUMSERVERS = len(app.config['MCSERVERS'])
  
      return render_template('index.html',
              PAGE_TITLE='Dashboard',
              SITE_TITLE='Voltaire',
              NUMSERVERS=NUMSERVERS)
  
  @app.route('/about')
  def about():
      return render_template('about.html', 
              SITE_TITLE='Voltaire')
  
  @app.route('/mcstatus/<MCSERVER_ADDR>/<int:MCSERVER_PORT>')
  def return_mcstatus(MCSERVER_ADDR, MCSERVER_PORT):
      get_status = MinecraftQuery(MCSERVER_ADDR,MCSERVER_PORT).get_rules()
      return render_template('mcstatus.html', 
              get_status = get_status)
  
  @app.route("/signup", methods = ['GET', 'POST'])
  def signup():
      form = SignupForm(request.form)
      if request.method == 'POST' and form.validate():
          user = User(form.mcuser.data, form.mcemail.data)
          db.session.add(user)
          db.session.commit()
          flash('Thanks for signing up. Please check your email for a response soon!')
          return redirect(url_for('index'))
      return render_template('signup.html',
              title = 'Signup',
              form = form)
  
  
subject: remove irrelevant commented bs