Ejemplo n.º 1
0
def decks():
    user = current_user
    decks = Deck.get_all_json(type='language_deck')
    return render_template('decks.html',
                           title='Home',
                           user=user,
                           language_decks=decks)
Ejemplo n.º 2
0
def articles():
    return render_template(
        'articles.html',
        title='Articles',
        user=current_user,
        language_decks=Deck.get_all_json(type='article_deck'))