diff --git a/src/datastation/deposit_create_report.py b/src/datastation/deposit_create_report.py index 4e6a49b..1a25fe3 100755 --- a/src/datastation/deposit_create_report.py +++ b/src/datastation/deposit_create_report.py @@ -47,8 +47,8 @@ def main(): help='the file to write the output and send recipient to a to or - for stdout') parser.add_argument('-e', '--enddate', dest='enddate', help='Filter until the record creation of this date') parser.add_argument('-s', '--startdate', dest='startdate', help='Filter from the record creation of this date') - parser.add_argument('-t', '--state', help='The state of the deposit') - parser.add_argument('-u', '--user', dest='user', help='The depositor name') + 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('-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') diff --git a/src/datastation/managedeposit/manage_deposit.py b/src/datastation/managedeposit/manage_deposit.py index 8293804..1b9033f 100644 --- a/src/datastation/managedeposit/manage_deposit.py +++ b/src/datastation/managedeposit/manage_deposit.py @@ -8,8 +8,10 @@ class ManageDeposit: def __init__(self, cmd_args): self.__cmd_args = cmd_args - self.__payload = {'user': cmd_args.user, 'state': cmd_args.state, - 'startdate': cmd_args.startdate, 'enddate': cmd_args.enddate} + self.__payload = {'user': cmd_args.user, + 'state': cmd_args.state, + 'startdate': cmd_args.startdate, + 'enddate': cmd_args.enddate} self.__headers = dict()