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