rDrama/files/events/helpers/jinja.py

31 lines
906 B
Python
Raw Normal View History

2022-12-16 19:38:44 +00:00
import random
2022-12-16 21:32:09 +00:00
from datetime import date
def daysTillChristmas():
today = date.today()
christmas = date(today.year, 12, 25)
delta = abs(christmas - today)
return delta.days
2022-12-16 19:38:44 +00:00
EVENT_JINJA_CONST = {
"EVENT_BANNER": "banner_rDrama.html",
2022-12-16 02:42:28 +00:00
"EVENT_ICONS": True,
"EVENT_SIDEBAR": True,
2022-11-29 21:11:58 +00:00
"EVENT_STYLES": "blizzard.css",
"EVENT_AWARDS": True,
"EVENT_MUSIC": "music.html",
2022-12-15 22:36:03 +00:00
"EVENT_VISITORS_HERE_FLAVOR": [
2022-12-15 22:33:02 +00:00
' santa enjoyers kissing under a misletoe',
' bringing up family drama at Christmas dinner',
2022-12-16 21:48:08 +00:00
' least homoerotic dramanauts stroking their candy canes',
" dramanauts jingling each other's balls",
" average Santa deniers getting reamed by Rudolph the Red-Nosed Reindeer",
" naughty listers getting coal for fistmas",
" plus-sized dramanauts eating Santa's cookies",
" dramatards having their chimney's stuffed by Santa",
2022-12-16 19:38:44 +00:00
],
"random": random,
2022-12-16 21:32:09 +00:00
"daysTillChristmas": daysTillChristmas,
}