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):

@@ -160,10 +160,29 @@
 l = 
-%22%22
+'%3Ctable border=%221%22%3E'%0A
 %0A%0A  
@@ -209,16 +209,37 @@
  header%0A
+    retval += '%3Ctr%3E'%0A
     for 
@@ -276,22 +276,33 @@
  += 
-( item + %22, %22 
+%22%3Cth%3E%7B%7D%3C/th%3E%22.format(item
 )%0A  
@@ -317,20 +317,15 @@
  += 
-( %22%3Cbr%3E%22*2 )
+'%3C/tr%3E'
 %0A%0A  
@@ -371,16 +371,41 @@
  users:%0A
+        retval += %22%3Ctr%3E%22%0A
         
@@ -448,32 +448,62 @@
  += 
-( str(item) + %22 %22 )%0A    
+%22%3Ctd%3E%7B%7D%3C/td%3E%22.format(item)%0A        retval += %22%3C/tr%3E%22%0A%0A
     
@@ -518,10 +518,14 @@
 = %22%3C
-br
+/table
 %3E%22%0A%0A

Make a table for the front page