From 1ff9a84da7df72d467099cfc4e86c8334acc9384 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Mon, 21 Oct 2024 14:47:25 -0500 Subject: [PATCH] Flipped string slicing --- receivers/electron/scripts/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receivers/electron/scripts/deploy.py b/receivers/electron/scripts/deploy.py index 216180a..b4a8c15 100644 --- a/receivers/electron/scripts/deploy.py +++ b/receivers/electron/scripts/deploy.py @@ -106,7 +106,7 @@ def upload_local_cache(): rel_path = os.path.relpath(os.path.join(root, filename), LOCAL_CACHE_DIR) if RELEASE_CANDIDATE: - rc_path = rel_path[rel_path.rfind('.'):] + f'_rc{RELEASE_CANDIDATE_VERSION}' + rel_path[:rel_path.rfind('.')] + rc_path = rel_path[:rel_path.rfind('.')] + f'_rc{RELEASE_CANDIDATE_VERSION}' + rel_path[rel_path.rfind('.'):] os.rename(rel_path, rc_path) rel_path = rc_path