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

bug: discrepancy between project and user view wrt hours #1700

Open cantsin opened 9 months ago

cantsin commented 9 months ago

The project data table rounds up hours while the user data table has two decimal points for hours. In analytics.py, we do .applymap("{:.0f}" when perhaps it should be :.2f. This leads to inconsistency and confusion when looking at individual user hours.

Example: https://tock.18f.gov/projects/1909/ rounds up to 10 hours (first column, second row) while the actual user has 9.5 hours.

cantsin commented 6 months ago

FYSA DataFrame.applymap seems deprecated. We should be using DataFrame.map instead.