fix error user count being 0

pull/171/head
Aevann 2023-07-14 12:23:33 +03:00
parent 2413af3467
commit 93970b9dad
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<div class="srd">
{{calc_users()}}
{% if SITE_NAME == 'rDrama' %}
{% if not hasattr(g, "loggedin_counter") or (range(1,5) | random == 1 and not (v and v.truescore > 1000)) %}
{% if not hasattr(g, "loggedin_counter") or not g.loggedin_counter or (range(1,5) | random == 1 and not (v and v.truescore > 1000)) %}
{% include "journoid_banner.html" %}
{% else %}
{% if IS_DKD() %}
@ -67,7 +67,7 @@
{% endif %}
{{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in)
{% endif %}
{% elif hasattr(g, "loggedin_counter") %}
{% elif hasattr(g, "loggedin_counter") and g.loggedin_counter %}
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
{% else %}
Don't make the mistakes seen here.