Skip to content

Commit

Permalink
remove conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ekulos committed May 28, 2015
1 parent 2b51412 commit e47aa08
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def get_lines(self):
for project in projects:
obj = project.getObject()
timings = get_timings(obj)
estimate = (timings['estimate'] > 0) and timings['estimate']/8 or zero
bookings = (timings['resource_time'] > 0) and timings['resource_time']/8 or zero
estimate = (timings['estimate'] > 0) and timings['estimate'] or zero
bookings = (timings['resource_time'] > 0) and timings['resource_time'] or zero
start_date = obj.prj_start_date and self.date_isoformat(
obj.prj_start_date) or None
expected_end_date = obj.prj_expected_end_date and self.date_isoformat(
Expand All @@ -49,7 +49,7 @@ def get_lines(self):
start_date,
expected_end_date,
end_date,
obj.budget.to_integral(),
quantize(estimate).to_integral(),
quantize(bookings).to_integral()
obj.budget,
quantize(estimate),
quantize(bookings)
)

0 comments on commit e47aa08

Please sign in to comment.