Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum_time setting broken #124

Closed
fheft opened this issue Apr 22, 2024 · 1 comment
Closed

minimum_time setting broken #124

fheft opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fheft
Copy link
Contributor

fheft commented Apr 22, 2024

It seems to me like the minimum_time setting is broken. Instead of setting the minimum time of the time entry (i.e. log at least half an hour, even if the task only took 10 minutes), it seems to multiply the time.

Example YAML time sheet:

2024-04-20:
- 0.25 E 20000 Test
- 0.50 E 20001 Test
- 0.75 E 20002 Test
- 1.00 E 20003 Test

With the default minimum_time setting of 0.25 hours:

  Sat:  0.25h  @  [...]    Test
  Sat:  0.5h   @  [...]    Test
  Sat:  0.75h  @  [...]    Test
  Sat:  1.0h   @  [...]    Test

✔️ Works as expected

Changing minimum_time to half an hour:

  Sat:  0.5h   @  [...]    Test
  Sat:  1.0h   @  [...]    Test                          
  Sat:  1.5h   @  [...]    Test                          
  Sat:  2.0h   @  [...]    Test

⚠️ All time entries are doubled

Expected behavior, from my understanding:

Only the first time entry (less than half an hour) is changed:

  Sat:  0.5h  @  [...]    Test
  Sat:  0.5h   @  [...]    Test
  Sat:  0.75h  @  [...]    Test
  Sat:  1.0h   @  [...]    Test

I was not yet able to dig deeper into this issue.

@fheft fheft added the bug Something isn't working label Apr 22, 2024
@fheft
Copy link
Contributor Author

fheft commented May 6, 2024

Fixed in #125

@fheft fheft closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant