chore: undo unnecessary changes

(cherry picked from commit 3da2cac772)
This commit is contained in:
Saqib Ansari
2022-01-20 12:09:04 +05:30
committed by mergify-bot
parent eeb2402764
commit 8535ad5294

View File

@@ -67,7 +67,8 @@ def sorted_by_priority(pricing_rules, args, doc=None):
if not pricing_rule.get('priority'):
pricing_rule['priority'] = 1
pricing_rule_dict.setdefault(cint(pricing_rule.get("priority")), []).append(pricing_rule)
if pricing_rule.get('apply_multiple_pricing_rules'):
pricing_rule_dict.setdefault(cint(pricing_rule.get("priority")), []).append(pricing_rule)
for key in sorted(pricing_rule_dict):
pricing_rules_list.extend(pricing_rule_dict.get(key))