Skip to content

Commit

Permalink
qr download debugged
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumenik committed Jan 27, 2024
1 parent e2baaa8 commit 22ae030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/serverless/Lambda/qrdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
def lambda_handler(event, context):

bucket_name='arcombat-qr'
image_file_name=event['body']['email']
body_dict = json.loads(event['body'])
image_file_name=body_dict['email']

response = client.get_object(
Bucket=bucket_name,
Key=image_file_name+'.png',
)
print("Response from s3 : ",response)
image_file_to_be_downloaded=response['Body'].read()
return {
'statusCode': 200,
Expand Down

0 comments on commit 22ae030

Please sign in to comment.