From 574db17fbb9f77b9f16662f9ca674e854efcc96f Mon Sep 17 00:00:00 2001 From: Ali Sheikhi Date: Mon, 11 Nov 2024 18:33:48 +0100 Subject: [PATCH] DD-1687 Vermeld DEMO of PROD in deposit-report e-mail --- src/datastation/deposit_create_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datastation/deposit_create_report.py b/src/datastation/deposit_create_report.py index fc164fb..9e84cbc 100755 --- a/src/datastation/deposit_create_report.py +++ b/src/datastation/deposit_create_report.py @@ -33,7 +33,7 @@ def save_report_to_file(self, report, output_file): def send_report_mail(self, attachment): SendMail.send(self.__command_line_args.email_to, - "Deposits report", + "Deposits report ({})".format(self.__command_line_args.server), "Please, find attached the detailed report of deposits.", attachment, self.__command_line_args.email_from_address, @@ -56,6 +56,7 @@ def main(): parser.add_argument('-t', '--state', help='The state of the deposit (repeatable)', action='append') parser.add_argument('-u', '--user', dest='user', help='The depositor name (repeatable)', action='append') parser.add_argument('-f', '--format', dest='file_format', default='text/csv', help='Output data format') + parser.add_argument('-v', '--server', dest='server', default='TEST', help='which host (PROD/DEMO)') parser.add_argument('-r', '--from', dest='email_from_address', help='from address') parser.add_argument('--email-to', dest='email_to', help='when more than one recipient: comma separated emails') parser.add_argument('--cc-email-to', dest='cc_email_to', help='will be sent only if email-to is defined')