rDrama/files/events/helpers/jinja.py

27 lines
646 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',
' well-behaved rule-following goodthinkers',
' throwing shade right now',
2022-12-16 19:38:44 +00:00
],
"random": random,
2022-12-16 21:32:09 +00:00
"daysTillChristmas": daysTillChristmas,
}