Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DD-1687 Vermeld DEMO of PROD in deposit-report e-mail #70

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.upper()),
"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='unknown server', help='which server (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
Loading