Skip to content

Commit

Permalink
DD-1687 Vermeld DEMO of PROD in deposit-report e-mail
Browse files Browse the repository at this point in the history
  • Loading branch information
aliassheikh committed Nov 11, 2024
1 parent 6073892 commit 574db17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/datastation/deposit_create_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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')
Expand Down

0 comments on commit 574db17

Please sign in to comment.