This commit is contained in:
@@ -391,6 +391,7 @@ class ScoreFormula(models.Model):
|
||||
|
||||
dimension_map = {f'd["{d.name}"]': f'[{d.name}]' for d in self.competition.score_dimensions.all()}
|
||||
dimension_map.update({f"d['{d.name}']": f'[{d.name}]' for d in self.competition.score_dimensions.all()})
|
||||
dimension_map.update({f'dimension_{d.id}': f'[{d.name}]' for d in self.competition.score_dimensions.all()})
|
||||
|
||||
result = self.formula
|
||||
for old, new in dimension_map.items():
|
||||
|
||||
Reference in New Issue
Block a user