Skip to content

Commit

Permalink
fix: since flag default
Browse files Browse the repository at this point in the history
closes #38
  • Loading branch information
caarlos0 committed Oct 27, 2021
1 parent f174876 commit 6e7271e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,17 @@ Important notes:
}
defer f.Close()

sinceT := time.Time{}
if sinceD > 0 {
sinceT = time.Now().UTC().Add(-1 * time.Duration(sinceD))
}

p := tea.NewProgram(ui.NewInitialModel(
client,
organization,
userBlacklist,
repoBlacklist,
time.Now().UTC().Add(-1*time.Duration(sinceD)),
sinceT,
top,
includeReviews,
csv,
Expand Down

0 comments on commit 6e7271e

Please sign in to comment.