Skip to content

Commit

Permalink
Provide an example of ISO format
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed May 14, 2024
1 parent 77d8d61 commit 3904681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/admin/useful_scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ To safely delete unused histories and their associated records, please use the `
optional arguments:
-h, --help show this help message and exit
--batch BATCH batch size
--created CREATED most recent created date/time in ISO format
--created CREATED most recent created date/time in ISO format (for example, March 11, 1952 is represented as '1952-03-11')
4 changes: 3 additions & 1 deletion lib/galaxy/model/scripts/prune_history_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def _get_parser():
parser = argparse.ArgumentParser(description=DESCRIPTION)
parser.add_argument("--batch", type=int, help="batch size")
parser.add_argument(
"--created", type=datetime.datetime.fromisoformat, help="most recent created date/time in ISO format"
"--created",
type=datetime.datetime.fromisoformat,
help="most recent created date/time in ISO format (for example, March 11, 1952 is represented as '1952-03-11')",
)
return parser

Expand Down

0 comments on commit 3904681

Please sign in to comment.