-
Notifications
You must be signed in to change notification settings - Fork 2
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
Script to create entries from the CI. #19
base: main
Are you sure you want to change the base?
Conversation
the CLI. Usage: python -m ceda_status_validator.editor add-entry
"--status", | ||
prompt=True, | ||
type=click.Choice(list(model.Status.__members__.keys())), | ||
default=model.Status.DOWN._name_, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use the Enum's ._name_
rather than using .name
?
"%Y-%m-%dT%H:%M:%S", | ||
"%Y-%m-%d %H:%M:%S", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to accept times with seconds if the model is going to strip them out to this format anyway: "%Y-%m-%dT%H:%M"
?
Usage: python -m ceda_status_validator.editor add-entry