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-1640 deposit-create-report should handle comma separated arguments #67

Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/datastation/deposit_create_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
6 changes: 4 additions & 2 deletions src/datastation/managedeposit/manage_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
Loading