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