示例#1
0
文件: main.py 项目: ktt-ol/poisk
def keys():
    keys = Key.query_ordered().all()
    keyholders = User.query_keyholders().all()
    return render_template("keys.html", keys=keys, keyholders=keyholders)
示例#2
0
文件: main.py 项目: ktt-ol/poisk
def index():
    keys = Key.query_ordered().all()
    keyholders = []
    if g.user.is_keyholder:
        keyholders = User.query_keyholders().all()
    return render_template("index.html", keys=keys, keyholders=keyholders)