This commit is contained in:
Aevann1 2021-11-23 23:16:29 +02:00
parent 43594c0816
commit 8188b81c03
2 changed files with 5 additions and 10 deletions

View file

@ -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/<id>")
@auth_desired