diff --git a/commands/build_bundles.py b/commands/build_bundles.py index 25ba815e..a259d7c4 100644 --- a/commands/build_bundles.py +++ b/commands/build_bundles.py @@ -173,7 +173,7 @@ def build_bundles(event, context): f"{base_url}{DESTINATION_FOLDER}/{bid}--{cid}.zip" ) print(f"'{bid}--{cid}.zip' was modified at {existing_bundle_timestamp}") - print(f"Latest change on {bid}/{cid} was at {changeset["timestamp"]}") + print(f"Latest change on {bid}/{cid} was at {changeset['timestamp']}") if not BUILD_ALL and changeset["timestamp"] < existing_bundle_timestamp: # Collection hasn't changed since last bundling. print(f"{bid}/{cid} hasn't changed since last bundle.") @@ -197,11 +197,11 @@ def build_bundles(event, context): print(f"Attachments total size {total_size_mb:.2f}MB") # Fetch all attachments and build "{bid}--{cid}.zip" - args_list = [(f'{base_url}{r["attachment"]["location"]}',) for r in records] + args_list = [(f"{base_url}{r['attachment']['location']}",) for r in records] all_attachments = call_parallel(fetch_attachment, args_list) write_zip( attachments_bundle_filename, - [(f'{record["id"]}.meta.json', json.dumps(record)) for record in records] + [(f"{record['id']}.meta.json", json.dumps(record)) for record in records] + [(record["id"], attachment) for record, attachment in zip(records, all_attachments)], ) bundles_to_upload.append(attachments_bundle_filename) diff --git a/requirements.txt b/requirements.txt index 3fa503df..b86bded3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -305,9 +305,9 @@ rsa==4.9 \ --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 # via google-auth -sentry-sdk==2.19.2 \ - --hash=sha256:467df6e126ba242d39952375dd816fbee0f217d119bf454a8ce74cf1e7909e8d \ - --hash=sha256:ebdc08228b4d131128e568d696c210d846e5b9d70aa0327dec6b1272d9d40b84 +sentry-sdk==2.20.0 \ + --hash=sha256:afa82713a92facf847df3c6f63cec71eb488d826a50965def3d7722aa6f0fdab \ + --hash=sha256:c359a1edf950eb5e80cffd7d9111f3dbeef57994cb4415df37d39fda2cf22364 # via -r requirements.in unidecode==1.3.8 \ --hash=sha256:cfdb349d46ed3873ece4586b96aa75258726e2fa8ec21d6f00a591d98806c2f4 \