delay wpd homoween until announcement is rdy

master
Aevann 2024-10-26 02:53:12 +03:00
parent a62a320efd
commit 4e18f71ce6
1 changed files with 1 additions and 1 deletions

View File

@ -1424,7 +1424,7 @@ fistmas_end = datetime.datetime.strptime(f'26/12/{t.year}', '%d/%m/%Y') + dateti
def IS_FISTMAS(): def IS_FISTMAS():
return fistmas_begin < datetime.datetime.now() < fistmas_end return fistmas_begin < datetime.datetime.now() < fistmas_end
homoween_begin_day = 1 if SITE_NAME == 'rDrama' else 26 homoween_begin_day = 1 if SITE_NAME == 'rDrama' else 27
homoween_begin = datetime.datetime.strptime(f'{homoween_begin_day}/10/{t.year}', '%d/%m/%Y') homoween_begin = datetime.datetime.strptime(f'{homoween_begin_day}/10/{t.year}', '%d/%m/%Y')
homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y') + datetime.timedelta(hours=16) homoween_end = datetime.datetime.strptime(f'1/11/{t.year}', '%d/%m/%Y') + datetime.timedelta(hours=16)
def IS_HOMOWEEN(): def IS_HOMOWEEN():