From 1578b57ba6192889eb16fe04fa620e5509c4f69e Mon Sep 17 00:00:00 2001 From: Avrohom Gottlieb Date: Sun, 8 Dec 2024 15:42:24 -0500 Subject: [PATCH] fix computed file is null bug --- api/scpca_portal/management/commands/dispatch_to_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scpca_portal/management/commands/dispatch_to_batch.py b/api/scpca_portal/management/commands/dispatch_to_batch.py index 3ef7a938..10bdeefb 100644 --- a/api/scpca_portal/management/commands/dispatch_to_batch.py +++ b/api/scpca_portal/management/commands/dispatch_to_batch.py @@ -70,7 +70,7 @@ def dispatch_to_batch(self, project_id: str = "", **kwargs): within that project. """ projects = ( - Project.objects.filter(project_computed_files__is_null=True) + Project.objects.filter(project_computed_files__isnull=True) if not project_id else Project.objects.filter(scpca_id=project_id) )