make fistmas automated
parent
e6b7b23605
commit
57b37634bb
|
@ -2,6 +2,12 @@ from enum import Enum, auto
|
||||||
from os import environ, path
|
from os import environ, path
|
||||||
|
|
||||||
import tldextract
|
import tldextract
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
t = datetime.datetime.now()
|
||||||
|
fistmas_begin = datetime.datetime.strptime(f'1/12/{t.year}', '%d/%m/%Y')
|
||||||
|
fistmas_end = datetime.datetime.strptime(f'2/1/{t.year+1}', '%d/%m/%Y')
|
||||||
|
HOLIDAY_EVENT = fistmas_begin < t < fistmas_end
|
||||||
|
|
||||||
DEFAULT_CONFIG_VALUE = "blahblahblah"
|
DEFAULT_CONFIG_VALUE = "blahblahblah"
|
||||||
SITE = environ.get("SITE").strip()
|
SITE = environ.get("SITE").strip()
|
||||||
|
@ -220,8 +226,6 @@ SUB_MARSEY_URL_LENGTH = 60
|
||||||
### SITE SPECIFIC CONSTANTS
|
### SITE SPECIFIC CONSTANTS
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
HOLIDAY_EVENT = True
|
|
||||||
|
|
||||||
PERMS = { # Minimum admin_level to perform action.
|
PERMS = { # Minimum admin_level to perform action.
|
||||||
'ADMIN_ADD': 3,
|
'ADMIN_ADD': 3,
|
||||||
'ADMIN_REMOVE': 3,
|
'ADMIN_REMOVE': 3,
|
||||||
|
@ -770,8 +774,7 @@ approved_embed_hosts = {
|
||||||
### Third-Party Media
|
### Third-Party Media
|
||||||
# TODO: Preferably kill these. Media proxy.
|
# TODO: Preferably kill these. Media proxy.
|
||||||
# DO NOT ADD: wordpress.com, wp.com (maybe) | Or frankly anything. No more.
|
# DO NOT ADD: wordpress.com, wp.com (maybe) | Or frankly anything. No more.
|
||||||
'redd.it', # disconcerting surface size {i, preview, external-preview, &c}
|
'redd.it', # disconcerting surface size {i, preview, external-preview, &c} but believed safe
|
||||||
# but believed safe
|
|
||||||
'redditmedia.com', # similar to above
|
'redditmedia.com', # similar to above
|
||||||
'twimg.com',
|
'twimg.com',
|
||||||
'pinimg.com',
|
'pinimg.com',
|
||||||
|
|
Loading…
Reference in New Issue