From e6ff781af2aa5c6e6bb8271ea0e102532cd0e0a9 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 6 Nov 2024 14:23:12 +0100 Subject: [PATCH] still some fixes regarding the split of the workbooks --- work_helpers/sg_mbp_build.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/work_helpers/sg_mbp_build.py b/work_helpers/sg_mbp_build.py index bdf5711..34bef06 100644 --- a/work_helpers/sg_mbp_build.py +++ b/work_helpers/sg_mbp_build.py @@ -218,24 +218,27 @@ def get_announcement_text( change_msg = "The changes made:" if not build_version.endswith(TODAY): + term = "build" dev_version = build_version.split(".")[-1] version_note = ( f"As indicated by the letter '{dev_version}' at the end," - " this version is intended for Freiburg only." + f" this {term} is intended for Freiburg only." ) else: - version_note = "This is an official release version." + term = "version" + version_note = f"This is an official release {term}." text = [ - f"# New MBP Workbook Version {build_version}", + f"# New MBP {group} {term.title()} {build_version}", "Good News Everyone,", - f"there is a new MBP workbook version available: {build_version}", + f"there is a new MBP {group} {term} available: {build_version}", version_note, change_msg, "\n".join(changes), - "You can find this version at our Freiburg Shared Drive:", + f"You can find this {term} at our Freiburg Shared Drive:", ( - "Google Drive / Shared drives / Freiburg / Workbooks / MBP Workbooks /" + "Google Drive / Shared drives / Freiburg / Workbooks /" + f" MBP Workbooks {group} /" f" {latest} /" f" {new_folder_name}" ),