From 1026b98ed732e0164307ec9ade7b17b4498a470f Mon Sep 17 00:00:00 2001 From: jdolkowski Date: Sat, 19 Oct 2024 19:08:02 +0200 Subject: [PATCH] hotfix if statement --- calculation/calculation_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculation/calculation_rule.py b/calculation/calculation_rule.py index 995812b..ff9577c 100644 --- a/calculation/calculation_rule.py +++ b/calculation/calculation_rule.py @@ -43,7 +43,7 @@ def check_calculation(cls, instance): ] if class_name == "ABCMeta": match = UUID(str(cls.uuid)) == UUID(str(instance.uuid)) - if class_name == "ContributionPlan": + elif class_name == "ContributionPlan": match = UUID(str(cls.uuid)) == UUID(str(instance.calculation)) elif class_name == "ContributionPlanBundle": list_cpbd = list(ContributionPlanBundleDetails.objects.filter(