events: forced hats

pull/79/head
justcool393 2022-12-15 21:04:20 -06:00 committed by geese_suck
parent ed62326f30
commit d464b9ede9
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
2 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,10 @@ class User(Base):
if not FEATURES['HATS']:
return ''
if HOLIDAY_EVENT:
from files.events.helpers.const import EVENT_FORCED_HAT
if EVENT_FORCED_HAT: return EVENT_FORCED_HAT
if self.is_cakeday:
return '/i/hats/Cakeday.webp'

View File

@ -1,3 +1,4 @@
EVENT_AWARDS = {
}
EVENT_FORCED_HAT = None