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

cli: add command for domain create #482

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

utnapischtim
Copy link
Contributor

No description provided.

def domains_create(domain):
"""Create domain."""
try:
domain_category = DomainCategory.create(domain.lower())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

question: is the lower really necessary? should it be like that?

Copy link
Member

Choose a reason for hiding this comment

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

The column is actually named label so I would imagine it's the human-friendly name. IMHO it shouldn't have to be lowercase, but it also doesn't matter since the FK is an integer

@utnapischtim utnapischtim merged commit 4eb1a16 into inveniosoftware:master Jul 30, 2024
8 checks passed
@utnapischtim utnapischtim deleted the add-domain-cli branch July 30, 2024 14:49
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