from charlotte import app, feed with app.app_context(): feed.update_feeds()
def do_update_feeds(): if request.method == 'GET': return render_template('update.html') elif request.method == 'POST': update_feeds() return 'ok'