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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they are the same. No idea why I did that. Maybe try it with .name and see if it still works?

image

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No preference, don't think it matters either way, happy to remove.

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