def ban(item): item = ContentItem.get_by_id(item) item.banned = True item.save() return redirect("/")
def index(): return render_template('index.html', comments=ContentItem.get_all_not_banned(), user=session.get("user") )