From 894e65060798930a5fa6e3927dfcf8a72582e094 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Thu, 27 Feb 2025 12:58:21 -0800 Subject: [PATCH] Swap order of backends --- contentcuration/contentcuration/utils/gcs_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/utils/gcs_storage.py b/contentcuration/contentcuration/utils/gcs_storage.py index 896af6ed11..740921055b 100644 --- a/contentcuration/contentcuration/utils/gcs_storage.py +++ b/contentcuration/contentcuration/utils/gcs_storage.py @@ -212,10 +212,10 @@ def _is_file_empty(fobj): class CompositeGCS(Storage): def __init__(self): self.backends = [] + self.backends.append(GoogleCloudStorage(_create_default_client(), settings.AWS_S3_BUCKET_NAME)) # Only add the studio-content bucket (the production bucket) if we're not in production if settings.SITE_ID != settings.PRODUCTION_SITE_ID: self.backends.append(GoogleCloudStorage(Client.create_anonymous_client(), "studio-content")) - self.backends.append(GoogleCloudStorage(_create_default_client(), settings.AWS_S3_BUCKET_NAME)) def _get_writeable_backend(self): """