From 0a1cd65320ee3343e4f9a260dd3e47dc3a580663 Mon Sep 17 00:00:00 2001 From: Nemo Date: Tue, 24 May 2022 18:46:13 +0530 Subject: [PATCH] [ci skip] Don't announce additions if there aren't any --- src/release.mako | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/release.mako b/src/release.mako index 75e2f31..0661a9b 100644 --- a/src/release.mako +++ b/src/release.mako @@ -19,6 +19,7 @@ ${row['changes']['Description'][1]} %endif +% if len(added) > 0

Additions

The following new ISINs were added: @@ -29,6 +30,10 @@ ISIN|Description|Issuer|Type|Status `${row['ISIN']}`|${row['Description']}|${row['Issuer']}|${row['Type']}|${row['Status'].title()} % endfor +%endif + + +% if len(changed) > 0

Changes

The following ISINs changed their status: @@ -56,8 +61,6 @@ The following ISINs changed their status: -## This will usually contain the description - The following ISINs changed other fields: ```diff @@ -68,7 +71,9 @@ ${singlediff(row)} % endfor ``` -## Removals are currently happening accidentally because NSDL website returns a 5xx +%endif + +## Removals may happen accidentally because NSDL website returns a 5xx %if len(removed) > 0: @@ -82,4 +87,4 @@ ISIN|Description|Issuer|Type|Status `${row['ISIN']}`|${row['Description']}|${row['Issuer']}|${row['Type']}|${row['Status'].title()} % endfor -%endif \ No newline at end of file +%endif