diff options
| author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2024-08-19 16:11:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 16:11:44 +0000 |
| commit | a42d030fb663ad7eb040498cfc5f0627a27d6cc6 (patch) | |
| tree | 6b0f66b37ef8c31621d55a71fb77cceee292cdb2 /src | |
| parent | 4f629e532a1e989096985dc9cd9e6f03f7b44354 (diff) | |
| download | de-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')
| -rw-r--r-- | src/extract_lambda.py | 8 |
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 |
