majuna/app/portal/eotk.py

17 lines
493 B
Python
Raw Normal View History

from flask import render_template, Blueprint
from sqlalchemy import desc
from app.models.onions import Eotk
bp = Blueprint("eotk", __name__)
@bp.route("/list")
def eotk_list():
instances = Eotk.query.filter(Eotk.destroyed == None).order_by(desc(Eotk.added)).all()
return render_template("list.html.j2",
section="eotk",
title="EOTK Instances",
item="eotk",
items=instances)