From 6bb36de5d40c0d32b70448a157f549fb282bd0c5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 4 Oct 2023 21:58:00 +0300 Subject: [PATCH] better syntax --- files/routes/wrappers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 2c59d9aaa..33d88c2dd 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -118,8 +118,8 @@ def get_logged_in_user(): g.is_tor = (request.headers.get("cf-ipcountry") == "T1" and not (v and v.truescore >= 1000)) - if v and session.get("event_music") and not IS_EVENT(): - session.pop("event_music") + if v and not IS_EVENT(): + session.pop("event_music", None) g.show_over_18 = SITE_NAME == 'WPD' or (v and v.over_18) or session.get('over_18_cookies', 0) >= int(time.time())