automate 4th of july banner
parent
ebba512e65
commit
a571b5dd71
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
|
@ -1055,6 +1055,11 @@ def IS_EVENT():
|
|||
return "birthdead"
|
||||
return None
|
||||
|
||||
fourth_begin = datetime.datetime.strptime(f'4/7/{t.year}', '%d/%m/%Y')
|
||||
fourth_end = datetime.datetime.strptime(f'5/7/{t.year}', '%d/%m/%Y')
|
||||
def IS_FOURTH():
|
||||
return SITE_NAME == 'rDrama' and fourth_begin < datetime.datetime.now() < fourth_end
|
||||
|
||||
CHUD_PHRASES = ( #if you add a phrase, remove one in turn
|
||||
"Trans lives matter",
|
||||
"Black lives matter",
|
||||
|
|
|
@ -197,7 +197,7 @@ def inject_constants():
|
|||
"BIO_FRIENDS_ENEMIES_LENGTH_LIMIT":BIO_FRIENDS_ENEMIES_LENGTH_LIMIT,
|
||||
"SITE_FULL_IMAGES": SITE_FULL_IMAGES,
|
||||
"IS_EVENT":IS_EVENT, "IS_FISTMAS":IS_FISTMAS, "IS_HOMOWEEN":IS_HOMOWEEN,
|
||||
"IS_DKD":IS_DKD, "IS_BIRTHGAY":IS_BIRTHGAY, "IS_BIRTHDEAD":IS_BIRTHDEAD,
|
||||
"IS_DKD":IS_DKD, "IS_BIRTHGAY":IS_BIRTHGAY, "IS_BIRTHDEAD":IS_BIRTHDEAD, "IS_FOURTH":IS_FOURTH,
|
||||
"CHUD_PHRASES":CHUD_PHRASES, "hasattr":hasattr, "calc_users":calc_users, "HOLE_INACTIVITY_DELETION":HOLE_INACTIVITY_DELETION,
|
||||
"LIGHT_THEMES":LIGHT_THEMES, "DARK_THEMES":DARK_THEMES, "NSFW_EMOJIS":NSFW_EMOJIS, "HOLES":HOLES, "CARP_ID":CARP_ID,
|
||||
"MAX_IMAGE_AUDIO_SIZE_MB":MAX_IMAGE_AUDIO_SIZE_MB, "MAX_IMAGE_AUDIO_SIZE_MB_PATRON":MAX_IMAGE_AUDIO_SIZE_MB_PATRON,
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
{% set expand = false %}
|
||||
{% elif IS_DKD() or IS_BIRTHGAY() or IS_BIRTHDEAD() %}
|
||||
{% set src = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/banners") %}
|
||||
{% elif IS_FOURTH() %}
|
||||
{% set src = SITE_FULL_IMAGES ~ '/i/rDrama/4th-of-july-banner.webp' %}
|
||||
{% elif SITE_NAME == "rDrama" %}
|
||||
{% set href = "https://donate.transequality.org/a/ncte" %}
|
||||
{% set expand = false %}
|
||||
|
|
Loading…
Reference in New Issue