From c7357855c99c43d93ff222ca7ea00245be6a3cb5 Mon Sep 17 00:00:00 2001 From: sharad1126 Date: Wed, 1 Jul 2020 17:19:34 +0200 Subject: [PATCH] check primary dataset before assigning primary_aaa --- Unified/assignor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unified/assignor.py b/Unified/assignor.py index c11d1168c..f673bc45c 100755 --- a/Unified/assignor.py +++ b/Unified/assignor.py @@ -204,7 +204,7 @@ def rank( wfn ): if 'Campaign' in wfh.request and wfh.request['Campaign'] in CI.campaigns: assign_parameters.update( CI.campaigns[wfh.request['Campaign']] ) - if 'primary_AAA' in assign_parameters: + if 'primary_AAA' in assign_parameters and primary: primary_aaa = primary_aaa or assign_parameters['primary_AAA'] if 'secondary_AAA' in assign_parameters: secondary_aaa = secondary_aaa or assign_parameters['secondary_AAA']