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

Aggregation of partial entries not working #129

Open
fheft opened this issue Jan 22, 2025 · 0 comments
Open

Aggregation of partial entries not working #129

fheft opened this issue Jan 22, 2025 · 0 comments

Comments

@fheft
Copy link
Contributor

fheft commented Jan 22, 2025

Aggregating time entries as described in the docs (yaml_format.md) does not work.

After displaying the list of entries, buchungsstreber exits silently.

Example:

buchungen.yml:

2025-01-22:
- 08:00-09:00 Entwicklung 50000  ExampleText
- 09:00-10:00             50000

Output after executing buchungsstreber:

BUCHUNGSSTREBER v2.11.1
~~~~~~~~~~~~~~~~~~~~~~~

  Wed:  2.0h  @  <redacted issue title>                        ExampleText         

Process finished with exit code 0

The issue seems to be that entries are first validated and then aggregated. As entries using the aggregation feature (- 09:00-10:00 50000) are not valid by themselves, the program terminates.
No error is displayed as the invalid entry no longer exists by then (having been aggregated with a valid entry).

See app.cli lines 30 (validation), 31 (aggregation) and 45 (exiting).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant