Skip to content

Report calculates wrong totals  #505

@hinricht

Description

@hinricht

I'm using watson for quite a while now and was happy with it so far! But just now I noticed that the calculated totals reported by watson report were completely off for the last week I worked in 2023:

$ watson log --from 2023-12-18 --to 2023-12-22
Monday 18 December 2023 (6h 25m 44s)
	9e2e084  08:55 to 15:20   6h 25m 44s  project1

Tuesday 19 December 2023 (6h 09m 00s)
	386e1a5  10:00 to 16:09   6h 09m 00s  project1 [sick]

Wednesday 20 December 2023 (6h 34m 16s)
	ae4f5bf  09:35 to 16:09   6h 34m 16s  project1

Thursday 21 December 2023 (5h 24m 26s)
	7732b0e  09:18 to 14:43   5h 24m 26s  project1

So far so good, roughly 24,5 hours by estimation.
But watson report tells me 57,5 hours !

$ watson report --from 2023-12-18 --to 2023-12-22
Mon 18 December 2023 -> Fri 22 December 2023

project1 - 57h 23m 25s
	[sick 6h 09m 00s]

Total: 57h 23m 25s

I am staring at the results for some time and can't figure out what's happening ...?

It also gets even weirder, by every day I increase the --to date I get more hours even though I have no frames after Dec 22th:

$ watson report --from 2023-12-18 --to 2023-12-23
Mon 18 December 2023 -> Sat 23 December 2023

project1 - 81h 23m 25s
	[sick  6h 09m 00s]

Total: 81h 23m 25s

$ watson report --from 2023-12-18 --to 2023-12-24
Mon 18 December 2023 -> Sun 24 December 2023

project1 - 105h 23m 25s
	[sick  6h 09m 00s]

Total: 105h 23m 25s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions