1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Flipped string slicing

This commit is contained in:
Michael Hollister 2024-10-21 14:47:25 -05:00
parent 9dc2db81e9
commit 1ff9a84da7

View file

@ -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