Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed May 23, 2024
1 parent 5347da6 commit 0616a38
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions felt/core/s3_upload_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,20 @@ def from_json(res: str) -> 'S3UploadParameters':
"""
return S3UploadParameters(
type=res.get('data', {}).get('type'),
aws_access_key_id=res.get('presigned_attributes', {}).get('AWSAccessKeyId'),
aws_access_key_id=res.get('presigned_attributes', {})
.get('AWSAccessKeyId'),
acl=res.get('presigned_attributes', {}).get('acl'),
key=res.get('presigned_attributes', {}).get('key'),
policy=res.get('presigned_attributes', {}).get('policy'),
signature=res.get('presigned_attributes', {}).get('signature'),
success_action_status=res.get('presigned_attributes', {}).get('success_action_status'),
x_amz_meta_features_flags=res.get('presigned_attributes', {}).get('x-amz-meta-feature-flags'),
x_amz_meta_file_count=res.get('presigned_attributes', {}).get('x-amz-meta-file-count'),
x_amz_security_token=res.get('presigned_attributes', {}).get('x-amz-security-token'),
success_action_status=res.get('presigned_attributes', {})
.get('success_action_status'),
x_amz_meta_features_flags=res.get('presigned_attributes', {})
.get('x-amz-meta-feature-flags'),
x_amz_meta_file_count=res.get('presigned_attributes', {})
.get('x-amz-meta-file-count'),
x_amz_security_token=res.get('presigned_attributes', {})
.get('x-amz-security-token'),
url=res.get('url'),
layer_id=res.get('layer_id'),
)

0 comments on commit 0616a38

Please sign in to comment.