From 5de55fef39e8556adfa032b40487695d0e4b91dd Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Fri, 24 Oct 2025 02:26:05 +0000 Subject: [PATCH] Add back scores link on danevo profile now that it's available. --- bemani/frontend/app.py | 2 +- bemani/frontend/danevo/endpoints.py | 1 + bemani/frontend/static/controllers/danevo/player.react.js | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bemani/frontend/app.py b/bemani/frontend/app.py index 62cd703..87a3a25 100644 --- a/bemani/frontend/app.py +++ b/bemani/frontend/app.py @@ -33,7 +33,7 @@ config = Config() # Allow cache-busting of entire frontend for major changes such as react upgrades. -FRONTEND_CACHE_BUST: str = "site.1.3.react.16.14" +FRONTEND_CACHE_BUST: str = "site.1.3.react.16.15" @app.before_request diff --git a/bemani/frontend/danevo/endpoints.py b/bemani/frontend/danevo/endpoints.py index efe4df1..c658b0a 100644 --- a/bemani/frontend/danevo/endpoints.py +++ b/bemani/frontend/danevo/endpoints.py @@ -282,6 +282,7 @@ def viewplayer(userid: UserID) -> Response: { "refresh": url_for("danevo_pages.listplayer", userid=userid), "records": url_for("danevo_pages.viewrecords", userid=userid), + "scores": url_for("danevo_pages.viewscores", userid=userid), }, ) diff --git a/bemani/frontend/static/controllers/danevo/player.react.js b/bemani/frontend/static/controllers/danevo/player.react.js index b3603ff..cac1985 100644 --- a/bemani/frontend/static/controllers/danevo/player.react.js +++ b/bemani/frontend/static/controllers/danevo/player.react.js @@ -64,6 +64,11 @@ var profile_view = createReactClass({ view your records : view {player.name}'s records } + · + { window.own_profile ? + view all your scores : + view all {player.name}'s scores + } );