Rename a variable.

This commit is contained in:
Albert Cervera i Areny 2014-04-09 20:39:51 +02:00
parent 93b33e6d5f
commit f5c9ae47ed
1 changed files with 4 additions and 4 deletions

View File

@ -227,11 +227,11 @@ class Plan(ModelSQL, ModelView):
if to_create:
ProductLine.create(to_create)
costs_to_create = []
to_create = []
for plan in plans:
costs_to_create.extend(plan.get_costs())
if costs_to_create:
CostLine.create(costs_to_create)
to_create.extend(plan.get_costs())
if to_create:
CostLine.create(to_create)
def get_costs(self):
"Returns the cost lines to be created on compute"