-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dataset create #24
Dataset create #24
Conversation
Changed the data init function to just initialize and added a new function data create to create new dataset
bf15438
to
8233902
Compare
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.
Just a few minor changes.
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.
Need a fix in the project_found
decorator
deploifai/context.py
Outdated
@@ -147,7 +147,7 @@ def project_found(f): | |||
@pass_context | |||
def wrapper(click_context, *args, **kwargs): | |||
deploifai_context = click_context.find_object(DeploifaiContextObj) | |||
if deploifai_context.local_config is not None: | |||
if deploifai_context.local_config["PROJECT"]["id"] is not None: |
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.
I think this might throw a KeyError
when trying to access a key that doesn't exist in the dictionary. So maybe check using if 'id' in ...
No description provided.