From 0b7f91d518e8d617d8d39d2859f845e9d3a32697 Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Mon, 10 Nov 2025 16:54:31 -0500 Subject: [PATCH] Only update a cohort when actually creating a magic collection --- isic/ingest/services/publish/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isic/ingest/services/publish/__init__.py b/isic/ingest/services/publish/__init__.py index e4680124..0865b08a 100644 --- a/isic/ingest/services/publish/__init__.py +++ b/isic/ingest/services/publish/__init__.py @@ -54,7 +54,7 @@ def cohort_publish_initialize( public=False, # the collection is always private to avoid leaking cohort names locked=True, ) - cohort.save(update_fields=["collection"]) + cohort.save(update_fields=["collection"]) publish_request = PublishRequest.objects.create( creator=publisher,