Stylistic choices + preparing for multi-event.

pull/22/head
Snakes 2022-11-29 14:53:12 -05:00
parent 03b925e54a
commit 0900b883b6
Signed by: Snakes
GPG Key ID: E745A82778055C7E
3 changed files with 7 additions and 7 deletions

View File

@ -82,12 +82,11 @@ def no_step_on_jc():
if app.config['SERVICE'] == Service.RDRAMA:
from files.routes import *
if HOLIDAY_EVENT:
from files.events import *
event_init()
elif app.config['SERVICE'] == Service.CHAT:
from files.routes.chat import *
if FEATURES['HOLIDAY_EVENT']:
if app.config['SERVICE'] == Service.RDRAMA:
from files.events import *
event_init()
stdout.flush()

View File

@ -209,6 +209,8 @@ PAGE_SIZES = {10, 25, 50, 100}
### SITE SPECIFIC CONSTANTS
################################################################################
HOLIDAY_EVENT = 'homoween22'
PERMS = { # Minimum admin_level to perform action.
'ADMIN_ADD': 3,
'ADMIN_REMOVE': 3,
@ -309,7 +311,6 @@ FEATURES = {
'PATRON_ICONS': False,
'ASSET_SUBMISSIONS': False,
'STREAMERS': False,
'HOLIDAY_EVENT': True,
}
WERKZEUG_ERROR_DESCRIPTIONS = {

View File

@ -390,7 +390,7 @@ def award_thing(v, thing_type, id):
if author.spider: author.spider += 86400
else: author.spider = int(time.time()) + 86400
badge_grant(user=author, badge_id=179, notify=False)
elif FEATURES['HOLIDAY_EVENT']:
elif HOLIDAY_EVENT:
from files.events import EVENT_AWARDS, award_thing_event
if kind in EVENT_AWARDS:
award_thing_event(v, kind, author)