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_todays_time_logs πŸ”’
Get all time logs with today’s date.
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.
populate_table_todays_timelogs