diff --git a/files/routes/static.py b/files/routes/static.py index 78bf89418..7626a9e88 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -7,7 +7,7 @@ from sqlalchemy import func from os import path import calendar import matplotlib.pyplot as plt -from files.classes.mod_logs import ACTIONTYPES, ACTIONTYPES2 +from files.classes.mod_logs import ACTIONTYPES2 site = environ.get("DOMAIN").strip() site_name = environ.get("SITE_NAME").strip() @@ -195,11 +195,8 @@ def log(v): actions=actions[:25] admins = [x[0] for x in g.db.query(User.username).filter(User.admin_level > 1).all()] - - if v and v.admin_level: types = ACTIONTYPES - else: types = ACTIONTYPES2 - return render_template("log.html", v=v, admins=admins, types=types, admin=admin, type=kind, actions=actions, next_exists=next_exists, page=page) + return render_template("log.html", v=v, admins=admins, types=ACTIONTYPES2, admin=admin, type=kind, actions=actions, next_exists=next_exists, page=page) @app.get("/log/") @auth_desired diff --git a/files/templates/log.html b/files/templates/log.html index 90ebef185..5107bd6e9 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -65,11 +65,9 @@