mwy2.0
This commit is contained in:
@@ -35,12 +35,10 @@ class StatusView(APIView):
|
||||
|
||||
config = Config.objects.filter(pk=1).first()
|
||||
if config is None:
|
||||
bgm_enabled = True
|
||||
site_title = "Nepal Journey: Our Story"
|
||||
together_since = default_together
|
||||
unlock_at = None
|
||||
else:
|
||||
bgm_enabled = config.bgm_enabled
|
||||
site_title = config.site_title or "Nepal Journey: Our Story"
|
||||
ts = config.together_since
|
||||
if ts is None:
|
||||
@@ -63,7 +61,6 @@ class StatusView(APIView):
|
||||
"unlocked": True,
|
||||
"unlock_at": unlock_at,
|
||||
"together_since": together_since,
|
||||
"bgm_enabled": bgm_enabled,
|
||||
"site_title": site_title,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user