From 90127ffa27d14079bee768e2b1e091babd4c0fe2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 3 May 2023 17:45:14 +0300 Subject: [PATCH] rename path --- files/routes/static.py | 4 ++-- files/templates/admin/admin_home.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 98ae3197b..e3284e9c5 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -124,8 +124,8 @@ def weekly_chart(v:User): def daily_chart(v:User): return send_file(statshelper.chart_path(kind="daily", site=SITE)) -@app.get("/patrons") -@app.get("/paypigs") +@app.get("/admin/patrons") +@app.get("/admin/paypigs") @limiter.limit(DEFAULT_RATELIMIT) @limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID) @admin_level_required(PERMS['VIEW_PATRONS']) diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 9c7d34d45..44d24a485 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -59,7 +59,7 @@
  • Currently Grassed Users
  • {%- endif %} {% if FEATURES['MARSEYBUX'] and v.admin_level >= PERMS['VIEW_PATRONS'] -%} -
  • Patrons
  • +
  • Patrons
  • {%- endif %} {% if v.admin_level >= PERMS['VIEW_ACTIVE_USERS'] %}
  • Currently Logged-in Users