16 lines
493 B
Python
16 lines
493 B
Python
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)
|