def index(): board_id = int(request.args.get('board_id', -1)) if board_id == -1: ms = Topic.all_delay() else: ms = Topic.find_all(board_id=board_id) token = str(uuid.uuid4()) u = current_user() csrf_tokens['token'] = u.id bs = Board.all() return render_template("topic/index.html", ms=ms, token=token, bs=bs,u=u)
def index(): board_id = int(request.args.get('board_id', -1)) if board_id == -1: #ms = Topic.cache_all() ms = Topic.all_delay() else: #ms = Topic.cache_find(board_id) ms = Topic.find_all(board_id=board_id) u = current_user() bs = Board.all() return render_template("topic/index.html", ms=ms, bs=bs)
def index(): # board_id = 2 board_id = int(request.args.get('board_id', -1)) if board_id == -1: #ms = Topic.cache_all() ms = Topic.all_delay() else: #ms = Topic.cache_find(board_id) ms = Topic.find_all(board_id=board_id) token = str(uuid.uuid4()) #print('token1', token) u = current_user() csrf_tokens[token] = u.id bs = Board.all() return render_template("topic/index.html", ms=ms, token=token, bs=bs)