allow PCM and WPD users to opt into event music

master
Aevann1 2022-12-20 03:40:41 +02:00
parent 2183161916
commit 7297fad5fe
3 changed files with 7 additions and 1 deletions

View File

@ -139,7 +139,9 @@ class User(Base):
rainbow = Column(Integer)
spider = Column(Integer, default=0)
if HOLIDAY_EVENT:
event_music = Column(Boolean, default=True, nullable=False)
if SITE_NAME == 'rDrama': default_event_music = True
else: default_event_music = False
event_music = Column(Boolean, default=default_event_music, nullable=False)
badges = relationship("Badge", order_by="Badge.created_utc", back_populates="user")
subscriptions = relationship("Subscription", back_populates="user")

View File

@ -56,3 +56,5 @@
{% include rules %}
</div>
</div>
{% include "event/music.html" %}

View File

@ -73,3 +73,5 @@
{% include rules %}
</div>
</div>
{% include "event/music.html" %}