From 6237b26e36f21bfb5a589e1e56a477f434cc5d2e Mon Sep 17 00:00:00 2001 From: Roger Yang Date: Mon, 24 Oct 2022 14:29:58 -0400 Subject: [PATCH] No issue: Update data renewal request script --- tools/data_renewal_request.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/data_renewal_request.py b/tools/data_renewal_request.py index 50228bd45..895b3043c 100755 --- a/tools/data_renewal_request.py +++ b/tools/data_renewal_request.py @@ -26,7 +26,6 @@ output_string = "" total_count = 0 updated_version = int(version) + 13 for row in csv_reader: - (section, metric) = row["name"].split('.') if row["keep(Y/N)"] == 'n': continue total_count += 1 @@ -35,7 +34,11 @@ for row in csv_reader: output_string += f' - {eval(row["data_reviews"])[0]}\n' output_string += "\n" output_string += "2) When will this collection now expire?\n" - output_string += f' - {updated_version}\n' + if len(row["new expiry version"]) == 0: + output_string += f' - {updated_version}\n' + else: + output_string += f' - {row["new expiry version"]}\n' + output_string += "\n" output_string += "3) Why was the initial period of collection insufficient?\n" output_string += f' - {row["reason to extend"]}\n'