Files
deskmeter/dmapp/def/devplan/wortroute
2025-08-03 09:06:42 -03:00

20 lines
919 B
Plaintext

goal
right now the /month route shows the time spent each day and the week totals in the last column
the goal is to create a very similar route /work that shows the daily times and week totals of time spent per project in the "work" workspace
constraints
this is personal tool, is not professionaly developed and have no rectify that that now. so even it doesnt follow best practices prefer adding new execution flows instead of modifying existing except it absolutely doesnt make sense to do so
steps to take
create one or more mongo queries that:
gathers all the task ids for all the projects from the task collections grouped by project, you can get the list of projects directly from this colection by looking in the "path" field of each document, work/<project>
sums the deltas of the tasks spent only the "work" workspace, (see /def/queries/'sum active tasks between dates.js') for reference