예제 #1
0
def view(term):
    url = get_trumpified_image_url_for_term(term)
    cache.incr(term, prefix='views')
    return render_template('image.html', src=url)
예제 #2
0
def submit():
    term = request.form['term']
    cache.incr(term, prefix='submissions')
    return redirect('/' + term)