Skip to content

Commit cea23ae

Browse files
committed
WIP consolidation task - minor comments
1 parent e03e26a commit cea23ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/grandchallenge/challenges/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def update_challenge_compute_costs():
116116
)
117117
)
118118

119-
# TODO: maybe push remainder to challenge-level compute costs to cover if there are NO valid invoices? I.e. a deficit?
120119
overall_covered_compute_costs = 0
121120
last_index = len(invoices) - 1
122121
for idx, invoice in enumerate(invoices):
@@ -134,6 +133,9 @@ def update_challenge_compute_costs():
134133

135134
if not is_last:
136135
# Limit to authorized budget for all but the last invoice
136+
137+
# TODO: maybe push remainder to challenge-level compute costs to cover if there are NO valid invoices? I.e. a deficit?
138+
# That way we don't need a special case for the last invoice.
137139
authorized_budget_compute_costs = (
138140
invoice.compute_costs_euros * 1000 * 100
139141
if invoice.is_budget_authorized

0 commit comments

Comments
 (0)