def profile(): u = current_user() if u is None: return redirect(url_for('.index')) else: user_topics = Topic.all_current_user_topic(u.id) replied_topics = Topic.all_replied_topic(u.id) return render_template('profile.html', user=u, ms=user_topics, rs=replied_topics)
def profile(): u = current_user() if u is None: return redirect(url_for('.index')) else: user_topics = Topic.all_current_user_topic(u.id) replied_topics = Topic.all_replied_topic(u.id) # for t in user_topics: # u = t.last_reply_user() # print('last reply user', u, u.image) board_id = int(request.args.get('board_id', -1)) return render_template('profile.html', user=u, ms=user_topics, rs=replied_topics, bid=board_id)