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)
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
def renderGeneral(): rooms= room.select() weeks = getWeeks() return render_template("db_general.html", rooms=rooms, weeks=weeks)