only calc_users when we need to show them

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-16 19:08:38 +02:00
parent dca21741c3
commit 3150714c2e
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,7 @@
}
</style>
{{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 %}
<div class="srd">
{% 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 %}
</div>