From 3150714c2e78cfe23b321a3d3379cf42f82fba72 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 16 Oct 2022 19:08:38 +0200 Subject: [PATCH] only calc_users when we need to show them --- files/templates/header.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/templates/header.html b/files/templates/header.html index 3b4907190..fc2aa0654 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -13,8 +13,7 @@ } -{{calc_users(v)}} -{% if g.loggedin_counter and not err and (SITE_NAME in ('PCM','rDrama') or g.loggedin_counter+g.loggedout_counter > 100) %} +{% if not err %}
{% if SITE_NAME == 'rDrama' %} {% if range(1,5) | random == 1 %} @@ -41,9 +40,11 @@ ' throwing shade right now', ] -%} + {{calc_users(v)}} {{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in) {% endif %} {% else %} + {{calc_users(v)}} {{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in) {% endif %}