예제 #1
0
def rendersurvey():
    user = auth.get_logged_in_user().username
    rooms= room.select()
    modules = module.select().where(module.instructor == user).order_by(module.module_code)
    return render_template("survey.html", 
                           rooms=rooms,
                           user = user, 
                           modules = modules)
예제 #2
0
def total_full_json():
    
    rooms = room.select()
    room_list = []
    for item in rooms:
        room_list.append(item.room_num)
    json_list = []
    
    for item in room_list:
        cur_data = full_room_json(item)
        json_list.append(cur_data)
    
    return json_list
예제 #3
0
def renderGeneral():
    rooms= room.select()
    weeks = getWeeks()
    return render_template("db_general.html", rooms=rooms, weeks=weeks)