Module tables

Module tables 

Source
Expand description

Contains functions to generate the tables with time statistics.

Functionsยง

get_duration_or_zero ๐Ÿ”’
Helper function to get duration from a map, returning zero if not found
get_total_time_by_user_in_last_n_days ๐Ÿ”’
Sums up all time logs by user for the last N days and returns a HashMap.
get_total_time_by_user_yesterday ๐Ÿ”’
Sums up all time logs by user for yesterday and returns a HashMap.
populate_table_timelogs_by_label
Assemble data for a table with time statistics for the given labels. Returns a tuple of the table data and the table header.
populate_table_timelogs_by_milestone
Assemble data for a table with time statistics for all milestones. Returns a tuple of the table data and the table header.
populate_table_timelogs_in_timeframes_by_user
Assemble data for the table with time statistics for the last N days. Returns a tuple of the table data and the table header.