Ejemplo n.º 1
0
def deck_page(user_name, deck_name):
    profile_user = user.get_by_id(user_name)
    return render_template('deck.html',
                           deck=profile_user.get_deck(deck_name),
                           page='deck',
                           profile_user=profile_user,
                           user=current_user)
Ejemplo n.º 2
0
def deck_page(user_name, deck_name):
    profile_user = user.get_by_id(user_name)
    return render_template('deck.html',
                           deck = profile_user.get_deck(deck_name),
                           page = 'deck',
                           profile_user = profile_user,
                           user=current_user)
Ejemplo n.º 3
0
def profile_page(user_name):
    if current_user.has_undetermined_cards():
        return redirect('/')
    profile_user = user.get_by_id(user_name)
    if not user:
        abort(404)
    return render_template('profile.html',
                           page='profile',
                           user=current_user,
                           profile_user=profile_user)
Ejemplo n.º 4
0
def profile_page(user_name):
    if current_user.has_undetermined_cards():
        return redirect('/')
    profile_user = user.get_by_id(user_name)
    if not user:
        abort(404)
    return render_template('profile.html',
                           page = 'profile',
                           user = current_user,
                           profile_user = profile_user)
Ejemplo n.º 5
0
def trade_page(user_name):
    profile_user = user.get_by_id(user_name)
    return render_template('trade.html',
                           page='trade',
                           profile_user=profile_user,
                           user=current_user)
Ejemplo n.º 6
0
def trade_page(user_name):
    profile_user = user.get_by_id(user_name)
    return render_template('trade.html',
                           page = 'trade',
                           profile_user = profile_user,
                           user = current_user )