Skip to content

Commit

Permalink
(release): v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Mar 2, 2020
1 parent e34801d commit 14b6666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.2.1] - 2020-03-02

## Fixed

- `clockify-cli report` parameter `--fill-missing-dates`, was not working

## [v0.2.0] - 2020-03-02

## Added
Expand Down
4 changes: 2 additions & 2 deletions cmd/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func reportWithRange(c *api.Client, start, end time.Time, cmd *cobra.Command) {
format, _ := cmd.Flags().GetString("format")
asJSON, _ := cmd.Flags().GetBool("json")
asCSV, _ := cmd.Flags().GetBool("csv")
fillEmptyDates, _ := cmd.Flags().GetBool("fill-empty-dates")
fillMissingDates, _ := cmd.Flags().GetBool("fill-missing-dates")

start = start.Add(time.Duration(start.Hour()) * time.Hour * -1)
end = end.Add(time.Duration(24-start.Hour()) * time.Hour * 1)
Expand All @@ -123,7 +123,7 @@ func reportWithRange(c *api.Client, start, end time.Time, cmd *cobra.Command) {
)
})

if fillEmptyDates && len(log) > 0 {
if fillMissingDates && len(log) > 0 {
newLog := make([]dto.TimeEntry, 0, len(log))

fillMissing := func(user *dto.User, first, last time.Time) []dto.TimeEntry {
Expand Down

0 comments on commit 14b6666

Please sign in to comment.