from wate import app
import db_ops

@app.route('/')
def index():
    users  = db_ops.users_everything_get()
    header = db_ops.COMPLETE_USER_SCHEMA

    retval = ""

    # First, print the header
    for item in header:
        retval += ( item + ", " )
    retval += ( "<br>"*2 )

    # Now print each user
    for user in users:
        for item in user:
            retval += ( str(item) + " " )
        retval += "<br>"

    return retval


#@app.route('/user/<username>')
#def user_data(username=None):

from wate import app
import db_ops

@app.route('/')
def index():
    users  = db_ops.users_everything_get()
    header = db_ops.COMPLETE_USER_SCHEMA

    retval = '<table border="1">'


    # First, print the header
    retval += '<tr>'
    for item in header:
        retval += "<th>{}</th>".format(item)
    retval += '</tr>'

    # Now print each user
    for user in users:
        retval += "<tr>"
        for item in user:
            retval += "<td>{}</td>".format(item)
        retval += "</tr>"

    retval += "</table>"

    return retval


#@app.route('/user/<username>')
#def user_data(username=None):

Make a table for the front page
Make a table for the front page

  from wate import app
  import db_ops
  
  @app.route('/')
  def index():
      users  = db_ops.users_everything_get()
      header = db_ops.COMPLETE_USER_SCHEMA
  
-     retval = ""
+     retval = '<table border="1">'
+ 
  
      # First, print the header
+     retval += '<tr>'
      for item in header:
-         retval += ( item + ", " )
-     retval += ( "<br>"*2 )
+         retval += "<th>{}</th>".format(item)
+     retval += '</tr>'
  
      # Now print each user
      for user in users:
+         retval += "<tr>"
          for item in user:
-             retval += ( str(item) + " " )
+             retval += "<td>{}</td>".format(item)
-         retval += "<br>"
+         retval += "</tr>"
+ 
+     retval += "</table>"
  
      return retval
  
  
  #@app.route('/user/<username>')
  #def user_data(username=None):
  
Make a table for the front page
## Code Before:
from wate import app
import db_ops

@app.route('/')
def index():
    users  = db_ops.users_everything_get()
    header = db_ops.COMPLETE_USER_SCHEMA

    retval = ""

    # First, print the header
    for item in header:
        retval += ( item + ", " )
    retval += ( "<br>"*2 )

    # Now print each user
    for user in users:
        for item in user:
            retval += ( str(item) + " " )
        retval += "<br>"

    return retval


#@app.route('/user/<username>')
#def user_data(username=None):

## Instruction:
Make a table for the front page
## Code After:
from wate import app
import db_ops

@app.route('/')
def index():
    users  = db_ops.users_everything_get()
    header = db_ops.COMPLETE_USER_SCHEMA

    retval = '<table border="1">'


    # First, print the header
    retval += '<tr>'
    for item in header:
        retval += "<th>{}</th>".format(item)
    retval += '</tr>'

    # Now print each user
    for user in users:
        retval += "<tr>"
        for item in user:
            retval += "<td>{}</td>".format(item)
        retval += "</tr>"

    retval += "</table>"

    return retval


#@app.route('/user/<username>')
#def user_data(username=None):
