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