mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 16:46:31 +00:00
fix config and installer
This commit is contained in:
@@ -34,16 +34,6 @@ class CDNManager:
|
||||
print(e)
|
||||
return False
|
||||
|
||||
def upload(self, bucket: str, filename: str, file_bytes: bytearray):
|
||||
try:
|
||||
self.upload_client.upload
|
||||
self.upload_client.upload_fileobj(io.BytesIO(file_bytes), bucket, filename)
|
||||
print(f'uploaded {filename} ({len(file_bytes)} bytes) to the {bucket}')
|
||||
return True
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return False
|
||||
|
||||
def download(self, bucket: str, filename: str):
|
||||
try:
|
||||
self.download_client.download_file(bucket, filename, filename)
|
||||
|
||||
Reference in New Issue
Block a user