Skip to content

Commit 9e4aecd

Browse files
Update helpers.py
Co-authored-by: valentijnscholten <valentijnscholten@gmail.com>
1 parent bce4723 commit 9e4aecd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

dojo/sla_config/helpers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,8 @@ def update_sla_expiration_dates_sla_config_sync(sla_config: SLA_Configuration, p
4444
mass_model_updater(Finding, findings, lambda f: f.set_sla_expiration_date(), fields=["sla_expiration_date"])
4545

4646
# reset the async updating flag to false for all products using this sla config
47-
# TODO: It would be faster to use update. Especially since we likely dont want signals to fire here
47+
# use update as we don't want save() and signals to be triggered
4848
products.update(async_updating=False)
49-
# for product in products:
50-
# product.async_updating = False
51-
# super(Product, product).save()
52-
# # TODO: I cannot see a reason why we need to calculate the grade here again
53-
# calculate_grade(product)
5449

5550
# reset the async updating flag to false for this sla config
5651
sla_config.async_updating = False

0 commit comments

Comments
 (0)