fix 500 error

master
Aevann 2023-07-02 02:50:41 +03:00
parent ca375b72ca
commit 4841ab1864
1 changed files with 36 additions and 34 deletions

View File

@ -6,7 +6,7 @@
<nav class="shadow-md fixed-top">
<div class="srd">
{% if SITE_NAME == 'rDrama' %}
{% if err or 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 (range(1,5) | random == 1 and not (v and v.truescore > 1000)) %}
{% include "journoid_banner.html" %}
{% else %}
{% if IS_DKD() %}
@ -66,8 +66,10 @@
{% endif %}
{{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in)
{% endif %}
{% else %}
{% elif hasattr(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.
{% endif %}
</div>