-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] feat: update for new file system implementation #75
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
base: main
Are you sure you want to change the base?
Conversation
❌ 5 blocking issues (5 total)
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
self.created_at = response["createdAt"] | ||
self.status = response["status"] | ||
|
||
def download(self, fileName: str, path: str = "./") -> 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.
fileName = self.filePath.split("/")[-1] | ||
raise Exception("Please supply a valid file name") | ||
if not self.url: | ||
raise Exception("No URL found for this file") |
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.
) -> Item: | ||
if not os.path.isfile(localPath): | ||
if not local_path: | ||
raise Exception("Please supply a localPath (path to your local file)") |
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.
"metadata": metadata, | ||
} | ||
if not file_name: | ||
raise Exception("Please supply a valid file 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.
rtype=RequestTypes.POST, | ||
route="file/create-upload-url", | ||
json=payload, | ||
overwrite_base_url="https://v2.api.audio/v3", |
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.
Define a constant instead of duplicating this literal "https://v2\.api\.audio/v3" 9 times. [radarlint-python:python.S1192]
No description provided.