Skip to content

Commit

Permalink
Merge pull request #67 from aliassheikh/DD-1640-deposit-create-report…
Browse files Browse the repository at this point in the history
…-should-can-handle-comma-separated-arguments

DD-1640 deposit-create-report should handle comma separated arguments
  • Loading branch information
janvanmansum authored Sep 17, 2024
2 parents 67c8910 + dd2f305 commit c7429a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit c7429a1

Please sign in to comment.