Skip to content

Commit 3dea11b

Browse files
Run ruff check and format
1 parent c4c4ed4 commit 3dea11b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lambda_fetch/lambda_function.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ def lambda_function(filename: str) -> None:
2929
raise ValueError("S3_BUCKET environment variable is not set")
3030
key = f"predictit/stage/{filename}"
3131
s3_client.put_object(
32-
Bucket=bucket,
33-
Key=key,
34-
Body=json.dumps(data),
35-
ContentType="application/json"
32+
Bucket=bucket, Key=key, Body=json.dumps(data), ContentType="application/json"
3633
)
3734
logging.info("Successfully stored data to S3")
3835

src/api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
import boto3
2-
import datetime
3-
import json
41
import logging
52
import requests
63

7-
from botocore.exceptions import ClientError
84
from typing import Optional
95

106
from .validate import PredictitResponse

0 commit comments

Comments
 (0)