8000 98 break by rknizzle · Pull Request #100 · dominikbraun/timetrace · GitHub
[go: up one dir, main page]

Skip to content

98 break - #100

Merged
dominikbraun merged 6 commits into
dominikbraun:mainfrom
rknizzle:98-break
Jun 6, 2021
Merged

dominikbraun merged 6 commits into
dominikbraun:mainfrom
rknizzle:98-break

Conversation

@rknizzle
@rknizzle rknizzle commented Jun 1, 2021
Copy link
Copy Markdown
Contributor

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
Comment thread core/record.go Resolved
@dominikbraun dominikbraun left a comment
Copy link
Copy Markdown
Owner

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.

Comment thread core/record.go Resolved
Comment thread core/timetrace.go 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()
@dominikbraun dominikbraun left a comment
Copy link
Copy Markdown
Owner

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
Copy Markdown
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

0