Beispiel #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)
Beispiel #2
0
def submit():
    term = request.form['term']
    cache.incr(term, prefix='submissions')
    return redirect('/' + term)