Skip to content

Commit

Permalink
fix duration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg authored Oct 19, 2023
1 parent c9d0d5b commit a79f1d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/helpers-charts.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ create_cumulated_duration_per_user <- function(
.data$started <= end_date &
.data$app_name == !!selected_app()
) %>%
mutate(duration = as.numeric(.data$duration)) %>%
group_by(.data$username) %>%
summarise(cum_duration = round(sum(.data$duration) / 3600)) %>%
summarise(cum_duration = as.numeric(round(sum(.data$duration) / 3600, 1))) %>%
arrange(.data$cum_duration) %>%
tidyr::replace_na(list(username = "Unknown")) %>%
e_charts(username) %>%
Expand Down

0 comments on commit a79f1d1

Please sign in to comment.