fix 500 error

master
Aevann 2023-07-02 02:14:52 +03:00
parent 784de237db
commit 0b4ead5f81
2 changed files with 2 additions and 2 deletions

View File

@ -121,5 +121,5 @@ def inject_constants():
"BIO_FRIENDS_ENEMIES_LENGTH_LIMIT":BIO_FRIENDS_ENEMIES_LENGTH_LIMIT,
"IMMUNE_TO_AWARDS": IMMUNE_TO_AWARDS, "SITE_FULL_IMAGES": SITE_FULL_IMAGES,
"IS_FISTMAS":IS_FISTMAS, "IS_HOMOWEEN":IS_HOMOWEEN, "IS_DKD":IS_DKD, "IS_EVENT":IS_EVENT, "IS_BIRTHGAY":IS_BIRTHGAY,
"CHUD_PHRASES":CHUD_PHRASES,
"CHUD_PHRASES":CHUD_PHRASES, "hasattr":hasattr,
}

View File

@ -7,7 +7,7 @@
{% if not err %}
<div class="srd">
{% if SITE_NAME == 'rDrama' %}
{% if 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() %}