Fix audit crash

This commit is contained in:
rubenwardy 2022-02-10 02:20:12 +00:00
parent 2bbb117eac
commit 83b2cf48d4

@ -39,7 +39,7 @@ def audit():
return render_template("admin/audit.html", log=pagination.items, pagination=pagination) return render_template("admin/audit.html", log=pagination.items, pagination=pagination)
@bp.route("/admin/audit/<int:id>/") @bp.route("/admin/audit/<int:id_>/")
@rank_required(UserRank.MODERATOR) @rank_required(UserRank.MODERATOR)
def audit_view(id_): def audit_view(id_):
entry = AuditLogEntry.query.get(id_) entry = AuditLogEntry.query.get(id_)