Esempio n. 1
0
def hello():
    if request.method == 'GET':
        DECKS = ['dominion']
    elif request.method == 'POST':
        DECKS = request.form.getlist('deckchoice')
    logging.debug(request.form)
    logging.debug(' '.join(give10(DECKS)))
    logging.debug(' '.join(giveCoin(DECKS)))
    logging.debug(' '.join(giveVict(DECKS)))
    return render_template("index.html",
        cards = give10(DECKS),
        coin = giveCoin(DECKS),
        vict = giveVict(DECKS),
        decks = ' + '.join(DECKS))
Esempio n. 2
0
def hello():
    # return "Hello World!"
    print ' '.join(give10('Seaside'))
    return ' '.join(give10('Seaside'))