File tree Expand file tree Collapse file tree
app/grandchallenge/challenges Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments