forked from MarseyWorld/MarseyWorld
make fistmas one week on wpd to prevent riots
parent
5b4ef0b3c0
commit
1c91f39c8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue