changed names of previously protected functions
This commit is contained in:
parent
3dd08fb4c4
commit
67e13ffacd
@ -40,11 +40,11 @@ def search_all():
|
||||
continue
|
||||
if matchCase:
|
||||
if s in row[0].__getattribute__(column):
|
||||
hits.append(row[0]._asdict())
|
||||
hits.append(row[0].asdict())
|
||||
break
|
||||
else:
|
||||
if s.lower() in row[0].__getattribute__(column).lower():
|
||||
hits.append(row[0]._asdict())
|
||||
hits.append(row[0].asdict())
|
||||
break
|
||||
if hits != []:
|
||||
result[table.__table__.fullname] = hits
|
||||
|
||||
@ -14,7 +14,7 @@ bp = Blueprint("titelbild", __name__)
|
||||
@bp.route("/titelbild")
|
||||
@bp.route("/titelbild/all")
|
||||
def all():
|
||||
return render_template("views/titelbild.html", titelbilder=map(lambda t: t._asdict_with_urls(), db.session.scalars(select(Titelbild))))
|
||||
return render_template("views/titelbild.html", titelbilder=map(lambda t: t.asdict_with_urls(), db.session.scalars(select(Titelbild))))
|
||||
|
||||
|
||||
@bp.route("/titelbild/image/<int:id>")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user