From 43bc9b35d6e4fe48d7e68153e0e13127e842a176 Mon Sep 17 00:00:00 2001 From: Cesar E Garza Date: Sat, 3 Jan 2026 17:33:01 -0600 Subject: [PATCH] Update CDN URLs in weapon helper functions and constants This commit modifies the base CDN URL in both the weapon helper functions and constants to include the 'splat-top' subdirectory. Additionally, it changes the file mode of the update_assets.py script to make it executable. These updates ensure consistency in resource paths across the application. --- scripts/update_assets.py | 0 .../components/player_components/weapon_helper_functions.js | 2 +- src/shared_lib/constants.py | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 scripts/update_assets.py diff --git a/scripts/update_assets.py b/scripts/update_assets.py old mode 100644 new mode 100755 diff --git a/src/react_app/src/components/player_components/weapon_helper_functions.js b/src/react_app/src/components/player_components/weapon_helper_functions.js index 18469c2..87634e6 100644 --- a/src/react_app/src/components/player_components/weapon_helper_functions.js +++ b/src/react_app/src/components/player_components/weapon_helper_functions.js @@ -59,7 +59,7 @@ function adjustBrightnessByRank(labColor, rank, delta, maxRank, invert) { } function getImageFromId(weaponId, weaponReferenceData) { - const baseCDNUrl = "https://splat-top.nyc3.cdn.digitaloceanspaces.com/"; + const baseCDNUrl = "https://splat-top.nyc3.cdn.digitaloceanspaces.com/splat-top/"; const weaponData = weaponReferenceData[weaponId]; const name = `${weaponData.class}_${weaponData.kit}`; if (weaponData) { diff --git a/src/shared_lib/constants.py b/src/shared_lib/constants.py index 31023b3..79641da 100644 --- a/src/shared_lib/constants.py +++ b/src/shared_lib/constants.py @@ -1,4 +1,4 @@ -BASE_CDN_URL = "https://splat-top.nyc3.cdn.digitaloceanspaces.com/" +BASE_CDN_URL = "https://splat-top.nyc3.cdn.digitaloceanspaces.com/splat-top/" MODES = [ "Splat Zones", "Tower Control", @@ -22,11 +22,11 @@ PLAYER_LATEST_REDIS_KEY = "player_latest_data" PLAYER_DATA_REDIS_KEY = "player_data" WEAPON_INFO_URL = ( - "https://splat-top.nyc3.cdn.digitaloceanspaces.com/data/weapon_info.json" + "https://splat-top.nyc3.cdn.digitaloceanspaces.com/splat-top/data/weapon_info.json" ) WEAPON_INFO_REDIS_KEY = "weapon_info" GAME_TRANSLATION_BASE_URL = ( - "https://splat-top.nyc3.digitaloceanspaces.com/data/language/%s.json" + "https://splat-top.nyc3.cdn.digitaloceanspaces.com/splat-top/data/language/%s.json" ) LANGUAGES = [ "USen",