18F / tock

We use Tock to track and report our time at 18F
https://18f.gsa.gov/2015/05/21/TockingTime/
Other
120 stars 37 forks source link

Fix projects view when timecards have None hours_spent #1731

Closed neilmb closed 4 months ago

neilmb commented 4 months ago

Description

1615 tracked down a situation where the individual project view can fail when a timecard object has None for the hours_spent field. This is uncommon, but does happen in our production data.

This fixes that situation by filling with Nones in the data frame with zeroes which is the more common case for our data. There is a failing test case that fails without the fix and passes with this change.