Skip to content

Commit

Permalink
Merge pull request #20 from openstates/update-realtime-archiving-cond…
Browse files Browse the repository at this point in the history
…itional

Update conditional for archiving
  • Loading branch information
alexobaseki authored Jun 13, 2024
2 parents ff27999 + e8558a1 commit 186221f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ def process_import_function(event, context):
}
]
)

if file_archiving_enabled:
# Possible that these values are strings instead of booleans
if (
file_archiving_enabled
and isinstance(file_archiving_enabled, bool)
) or file_archiving_enabled == "True":
archive_files(bucket, file_paths)

# delete object from original bucket
Expand Down

0 comments on commit 186221f

Please sign in to comment.