Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update media repository to use float64 for duration calculations
- Changed the data type of `duration` variables in `CountMoviesTotalDuration()` and `CountEpisodesTotalDuration()` functions from `int64` to `float64` - Updated return statements to round the calculated duration using the `math.Round()` function before converting it back to `int64` This commit improves accuracy in calculating total durations for movies and episodes by using floating-point numbers instead of integers.
- Loading branch information