Skip to content

Commit

Permalink
Linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobaseki committed Jun 6, 2024
1 parent 0f5c598 commit 2898c7e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,18 @@ def process_import_function(event, context):
return

bucket = messages[0].get("bucket")

file_archiving_enabled = context.file_archiving_enabled
for message in messages:
bucket = message.get("bucket")
key = message.get("file_path")
jurisdiction_id = message.get("jurisdiction_id")
jurisdiction_name = message.get("jurisdiction_name")
# Archiving processed realtime bills defaults to False, except it was explicitly set on
# cli or on task-definitions Repo as <--archive> or
# added on AWS admin console for os-realtime lambda function config as file_archiving_enabled=True
# Archiving processed realtime bills defaults to False, except it was
# explicitly set on cli or on task-definitions Repo as <--archive>
# 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 context.file_archiving_enabled
message.get("file_archiving_enabled") or file_archiving_enabled
)

# for some reason, the key is url encoded sometimes
Expand Down

0 comments on commit 2898c7e

Please sign in to comment.