From 1c91f39c8ffc39cbfc4fc218a426d4242aa87f01 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 9 Oct 2023 19:27:34 +0300 Subject: [PATCH] make fistmas one week on wpd to prevent riots --- files/helpers/config/const.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index aafcd2d51..929ffb53c 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -977,7 +977,10 @@ EMOJI_KINDS = ("Marsey", "Platy", "Wolf", "Donkey Kong", "Tay", "Capy", "Carp", t = datetime.datetime.now() -fistmas_begin = datetime.datetime.strptime(f'1/12/{t.year}', '%d/%m/%Y') +if SITE_NAME == 'rDrama': + fistmas_begin = datetime.datetime.strptime(f'1/12/{t.year}', '%d/%m/%Y') +else: + fistmas_begin = datetime.datetime.strptime(f'18/12/{t.year}', '%d/%m/%Y') fistmas_end = datetime.datetime.strptime(f'26/12/{t.year}', '%d/%m/%Y') def IS_FISTMAS(): return fistmas_begin < datetime.datetime.now() < fistmas_end @@ -986,7 +989,6 @@ if SITE_NAME == 'rDrama': homoween_begin = datetime.datetime.strptime(f'9/10/{t.year}', '%d/%m/%Y') else: homoween_begin = datetime.datetime.strptime(f'23/10/{t.year}', '%d/%m/%Y') - homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y') def IS_HOMOWEEN(): return homoween_begin < datetime.datetime.now() < homoween_end