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

98 break #100

Merged
merged 6 commits into from
Jun 6, 2021
Merged

98 break #100

merged 6 commits into from
Jun 6, 2021

Conversation

rknizzle
Copy link
Contributor

@rknizzle rknizzle commented Jun 1, 2021

Adds break time for the day when you run the status command.
The break time is calculated as the time between all records

Resolves #98

Screen Shot 2021-05-31 at 11 28 38 PM

@dominikbraun dominikbraun self-requested a review June 1, 2021 09:52
core/record.go Show resolved Hide resolved
Copy link
Owner

@dominikbraun dominikbraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me, I just requested a minor change.

core/record.go Show resolved Hide resolved
core/timetrace.go Outdated Show resolved Hide resolved
rknizzle added 5 commits June 2, 2021 22:11
	- It uses the less argument to RecordFilepaths to do the sorting
	- I realized that fs.RecordFilepaths already has a mechanism for
	sorting the record filenames by start time so I think its better
	to take advantage of that and use loadAllRecordsSortedAscending
	instead of sorting in breakTime()
Copy link
Owner

@dominikbraun dominikbraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for implementing this! 👍

@dominikbraun dominikbraun merged commit 7b84f76 into dominikbraun:main Jun 6, 2021
@dominikbraun
Copy link
Owner

This PR is contained in release 0.8.0.

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

Successfully merging this pull request may close these issues.

Add break since start field to timetrace status
2 participants