From 5b4ef0b3c02b2486c360ab7708b3d5d705c115da Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 9 Oct 2023 19:21:54 +0300 Subject: [PATCH] make homoween 1 week on WPD like last year to prevent riots --- files/helpers/config/const.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index fa6b3f382..aafcd2d51 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -982,10 +982,14 @@ fistmas_end = datetime.datetime.strptime(f'26/12/{t.year}', '%d/%m/%Y') def IS_FISTMAS(): return fistmas_begin < datetime.datetime.now() < fistmas_end -homoween_begin = datetime.datetime.strptime(f'9/10/{t.year}', '%d/%m/%Y') +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 SITE == 'devrama.net' or homoween_begin < datetime.datetime.now() < homoween_end + return homoween_begin < datetime.datetime.now() < homoween_end dkd_begin = datetime.datetime.strptime(f'25/4/{t.year}', '%d/%m/%Y') dkd_end = datetime.datetime.strptime(f'2/5/{t.year}', '%d/%m/%Y')