aboutsummaryrefslogtreecommitdiffstats
path: root/src/extract_lambda.py
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2024-08-19 16:11:44 +0000
committerGitHub <noreply@github.com>2024-08-19 16:11:44 +0000
commita42d030fb663ad7eb040498cfc5f0627a27d6cc6 (patch)
tree6b0f66b37ef8c31621d55a71fb77cceee292cdb2 /src/extract_lambda.py
parent4f629e532a1e989096985dc9cd9e6f03f7b44354 (diff)
downloadde-project-bentley-a42d030fb663ad7eb040498cfc5f0627a27d6cc6.tar.gz
de-project-bentley-a42d030fb663ad7eb040498cfc5f0627a27d6cc6.zip
style: format code with Autopep8, Black and Ruff Formatter
This commit fixes the style issues introduced in 4f629e5 according to the output from Autopep8, Black and Ruff Formatter. Details: https://github.com/ajschofield/de-project-bentley/pull/65
Diffstat (limited to 'src/extract_lambda.py')
-rw-r--r--src/extract_lambda.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/extract_lambda.py b/src/extract_lambda.py
index 5a5a631..9b17ef2 100644
--- a/src/extract_lambda.py
+++ b/src/extract_lambda.py
@@ -151,9 +151,9 @@ def process_and_upload_tables(db, existing_files, client=boto3.client("s3")):
table_name = table[0]
rows = db.run(
f"SELECT * FROM {identifier(table_name)} WHERE last_updated >= :latest;",
- latest={datetime.strftime(latest_timestamp, "%Y-%m-%d %H:%M:%S")},
+ latest={datetime.strftime(latest_timestamp, "%Y-%m-%d %H:%M:%S")},
)
- print('rows', rows)
+ print("rows", rows)
# Creating a temporary file path and writing the column name to it followed by each row of data
if rows:
csv_file_path = f"/tmp/{table_name}.csv"
@@ -183,7 +183,5 @@ def process_and_upload_tables(db, existing_files, client=boto3.client("s3")):
logger.error(f"Error uploading to S3: {e}")
else:
load_status["no change"].append(table_name)
- logger.info(
- f"No new data"
- )
+ logger.info(f"No new data")
return load_status
git.ajschof.me — hosted by ajschofield — powered by cgit