Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #163 from Bidaya0/fix/ossanomydownload
Browse files Browse the repository at this point in the history
remove asscess key
  • Loading branch information
Bidaya0 authored Dec 13, 2021
2 parents 328518e + e4558e6 commit f1e45f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apiserver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def download_file_to_path(access_key, access_key_secret, bucket_url, bucket_name

@staticmethod
def download_file(object_name, local_file):
return OssDownloader.download_file_to_path(access_key=settings.ACCESS_KEY,
access_key_secret=settings.ACCESS_KEY_SECRET,
bucket_url=OssDownloader.BUCKET_URL,
bucket_name=OssDownloader.BUCKET_NAME,
object_name=object_name,
local_file=local_file)
return OssDownloader.download_file_to_path( #access_key=settings.ACCESS_KEY,
#access_key_secret=settings.ACCESS_KEY_SECRET,
bucket_url=OssDownloader.BUCKET_URL,
bucket_name=OssDownloader.BUCKET_NAME,
object_name=object_name,
local_file=local_file)


def base64_decode(raw):
Expand Down

0 comments on commit f1e45f4

Please sign in to comment.