Skip to content

Commit

Permalink
Merge pull request #25 from openstates/archive-failed-jurisdiction-im…
Browse files Browse the repository at this point in the history
…port/DATA-5013

Clean up more env var handling code
  • Loading branch information
jessemortenson authored Nov 11, 2024
2 parents bf13ab4 + a4a75f5 commit 7fedbf6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ 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)
) or file_archiving_enabled == "True":
if file_archiving_enabled:
archive_individual_files(bucket, file_paths, filedir)

# delete object from original bucket
Expand Down

0 comments on commit 7fedbf6

Please sign in to comment.