hfaerber/Refactor-tractor-Fit-lit

Refactor methods to find metric for specific date

Closed this issue · 0 comments

Activity
Lines 31, 41, 46

Sleep
Line 40 & 46

Hydration
Line 28

These three methods can be refactored into 1 with a parameter metric in addition to the date parameter.

We would need to decide on rounding and could add conditionals if different
metrics require different rounding decimals.

Where should this live? User class?