make fistmas one week on wpd to prevent riots

master
Aevann 2023-10-09 19:27:34 +03:00
parent 5b4ef0b3c0
commit 1c91f39c8f
1 changed files with 4 additions and 2 deletions

View File

@ -977,7 +977,10 @@ EMOJI_KINDS = ("Marsey", "Platy", "Wolf", "Donkey Kong", "Tay", "Capy", "Carp",
t = datetime.datetime.now() 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') fistmas_end = datetime.datetime.strptime(f'26/12/{t.year}', '%d/%m/%Y')
def IS_FISTMAS(): def IS_FISTMAS():
return fistmas_begin < datetime.datetime.now() < fistmas_end 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') homoween_begin = datetime.datetime.strptime(f'9/10/{t.year}', '%d/%m/%Y')
else: else:
homoween_begin = datetime.datetime.strptime(f'23/10/{t.year}', '%d/%m/%Y') 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') homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y')
def IS_HOMOWEEN(): def IS_HOMOWEEN():
return homoween_begin < datetime.datetime.now() < homoween_end return homoween_begin < datetime.datetime.now() < homoween_end