From 9c964c56646d99c92c9662e56ed4288a03fa663f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joann=20M=C3=B5ndresku?= Date: Sun, 19 May 2024 14:32:00 +0300 Subject: [PATCH] Make contracts scale again --- contracts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts.py b/contracts.py index 2cbf1b9..7cef4e0 100644 --- a/contracts.py +++ b/contracts.py @@ -48,6 +48,9 @@ def __convert_contract_to_proto(obj): scale_factor = contract.max_coop_size * 0.35 if scale_factor > 1.0: scaler = 1.0 / scale_factor + for goalset in contract.goal_sets: + for goal in goalset.goals: + goal.target_amount *= scale_factor return contract def load_contracts(): -- 2.25.1