Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Nov 11, 2024
1 parent 892075b commit 76b6ca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def process_import_function(event, context):
# or added on AWS admin console for os-realtime lambda function
# config as FILE_ARCHIVING_ENABLED=True
file_archiving_enabled = (
message.get("file_archiving_enabled") or file_archiving_enabled
message.get("file_archiving_enabled") or file_archiving_enabled
)

# for some reason, the key is url encoded sometimes
Expand Down Expand Up @@ -147,8 +147,8 @@ def process_import_function(event, context):
)
# Possible that these values are strings instead of booleans
if (
file_archiving_enabled
and isinstance(file_archiving_enabled, bool)
file_archiving_enabled
and isinstance(file_archiving_enabled, bool)
) or file_archiving_enabled == "True":
archive_individual_files(bucket, file_paths, filedir)

Expand Down

0 comments on commit 76b6ca4

Please sign in to comment.