forked from MarseyWorld/MarseyWorld
allow PCM and WPD users to opt into event music
parent
2183161916
commit
7297fad5fe
|
@ -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")
|
||||
|
|
|
@ -56,3 +56,5 @@
|
|||
{% include rules %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "event/music.html" %}
|
||||
|
|
|
@ -73,3 +73,5 @@
|
|||
{% include rules %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "event/music.html" %}
|
||||
|
|
Loading…
Reference in New Issue