Stylistic choices + preparing for multi-event.
parent
03b925e54a
commit
0900b883b6
|
@ -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()
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue