Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions87c018584054
diff --git a/wger/manager/models/slot_entry.py b/wger/manager/models/slot_entry.py
index dd222368c..3eda33714 100644
--- a/wger/manager/models/slot_entry.py
+++ b/wger/manager/models/slot_entry.py
@@ -306,7 +306,11 @@ class SlotEntry(models.Model):
if config.replace:
out = config.value
else:
- step = config.value if config.step == StepChoices.ABSOLUTE else out * config.value / 100
+ step = (
+ config.value
+ if config.step == StepChoices.ABSOLUTE
+ else out * config.value / 100
+ )
if config.operation == OperationChoices.PLUS:
out += step