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.