Skip to content

Commit

Permalink
Merge pull request #65 from openimis/hotfix-if-statement
Browse files Browse the repository at this point in the history
hotfix if statement
  • Loading branch information
delcroip authored Oct 22, 2024
2 parents 5f38f20 + 1026b98 commit f506dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calculation/calculation_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f506dc6

Please sign in to comment.