Skip to content

Commit

Permalink
Merge pull request #237 from UIUC-Chatbot/export-link-update
Browse files Browse the repository at this point in the history
S3 download link update
  • Loading branch information
star-nox authored Mar 20, 2024
2 parents 4e89610 + 5376201 commit a450b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_ta_backend/service/export_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def export_data_in_bg(response, download_type, course_name, s3_path):
print("file uploaded to s3: ", s3_file)

# generate presigned URL
s3_url = s3.generatePresignedUrl('get_object', os.environ['S3_BUCKET_NAME'], s3_path, 3600)
#print("s3_url: ", s3_url)
s3_url = s3.generatePresignedUrl('get_object', os.environ['S3_BUCKET_NAME'], s3_path, 172800)


# get admin email IDs
headers = {"Authorization": f"Bearer {os.environ['VERCEL_READ_ONLY_API_KEY']}", "Content-Type": "application/json"}
Expand Down

0 comments on commit a450b12

Please sign in to comment.