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

Script to create entries from the CI. #19

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

amanning9
Copy link
Member

Usage: python -m ceda_status_validator.editor add-entry

@amanning9 amanning9 requested a review from danny-lloyd October 10, 2024 12:20
"--status",
prompt=True,
type=click.Choice(list(model.Status.__members__.keys())),
default=model.Status.DOWN._name_,
Copy link
Contributor

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?

Comment on lines +48 to +49
"%Y-%m-%dT%H:%M:%S",
"%Y-%m-%d %H:%M:%S",
Copy link
Contributor

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants