Skip to content

Commit

Permalink
DD-1659 Convert deposit-create-report argument 'age' to a date with c…
Browse files Browse the repository at this point in the history
…orrect format (#68)

Co-authored-by: Ali Sheikhi <[email protected]>
  • Loading branch information
aliassheikh and aliassheikh authored Sep 30, 2024
1 parent ecea530 commit 09685a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastation/deposit_create_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def main():
args = parser.parse_args()

if args.age is not None: # Note: args is a Namespace object
vars(args)['startdate'] = (date.today() + timedelta(days=-args.age)).strftime('%Y/%m/%d')
vars(args)['startdate'] = (date.today() + timedelta(days=-args.age)).strftime('%Y-%m-%d')

server_url = config['manage_deposit']['service_baseurl'] + '/report'

Expand Down

0 comments on commit 09685a4

Please sign in to comment.