From 478b176f5ebf60def2893fb3ffe2f7e90d6a72bf Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 23 Dec 2022 04:11:47 +0200 Subject: [PATCH] fix christmas hat descriptions --- files/classes/user.py | 4 ++++ files/events/helpers/const.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 2f5745143..95dd992cd 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -282,6 +282,10 @@ class User(Base): if not FEATURES['HATS']: return '' + if HOLIDAY_EVENT: + from files.events.helpers.const import EVENT_FORCED_HATS + if EVENT_FORCED_HATS: return 'Merry Christmas!' + if self.is_cakeday: return "I've spent another year rotting my brain with dramaposting, please ridicule me 🤓" diff --git a/files/events/helpers/const.py b/files/events/helpers/const.py index a81d548ea..889b99af2 100644 --- a/files/events/helpers/const.py +++ b/files/events/helpers/const.py @@ -95,6 +95,6 @@ EVENT_AWARDS = { """ -EVENT_FORCED_HATS = ['/i/hats/Santa Hat III.webp?h=1', \ - '/i/hats/Winter Cap.webp?h=1', \ - '/i/hats/Present Bow.webp?h=1'] +EVENT_FORCED_HATS = ['/i/hats/Santa Hat III.webp', \ + '/i/hats/Winter Cap.webp', \ + '/i/hats/Present Bow.webp']